Android lint--code optimization tool embedded in Android studio

Source: Internet
Author: User

Android Lint Tools is a static code tool that comes with Android Studio, Android Lint is a custom check rule specifically for Android, so you can check out many of the Android-specific code flaws. It is recommended that during the development process, it is a good time to regularly check the code for problems and to run lint before each test function module.

Android Studio itself integrates Android Lint, right-click on any of the one by one folders in the project, select Analyze→inspect Code in the pop-up menu ... You can perform a lint check.

  

The check results are as follows:

We can open one of them.

Here it's suggested that you can change a member variable to a local variable.

In addition, we can also customize the code hints for Android lint. The operation is as follows:

Depending on your needs, you can increase or decrease the severity level of some kind of hint appropriately.

Android lint--code optimization tool embedded in Android studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.