Default parameter configuration for debug and release modes in Android Studio

Source: Internet
Author: User

The possible properties and their default values are:

debuggable: Indicates whether the program can be debugged on the phone. In Eclipse, only android:debuggable= "true" will allow us to debug the Android program on the phone. But when we do not set its Debug property in Androidmanifest.xml: When you use Eclipse to run this way, its Debug property is True when it is packaged. The Debug property of this method of using eclipse export is false when it is packaged. When using ant packaging, its value depends on whether the ant's packaging parameters are release or Debug. So it's best not to set up Android in Androidmainifest.xml: The Debuggable property is set, but it is packaged to determine its value. 

The Zipalign:android SDK includes a "zipalign" tool that optimizes packaged applications. Run Zipalign on your application to make the interaction between Android and the application more efficient at run time. As a result, this approach allows applications and the entire system to run faster. We strongly recommend using the Zipalign tool on new and published programs to get an optimized version-even if your program was developed under an older version of Android.
Runproguard: Whether the code is confusing or not proguard is a free tool for compressing, optimizing, and confusing Java bytecode files, which can remove useless classes, fields, methods, and properties. You can delete unused annotations to maximize the optimization of bytecode files. It can also use short, meaningless names to rename existing classes, fields, methods, and properties.

Default parameter configuration for debug and release modes 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.