在Android中的AndroidManifest.xml文件中可以设置很多属性,其中有一项是debuggable属性,意为“可调试”,有true和false两种模式。


默认情况下我们都是需要设置的,如果打包的是debug版本的apk文件,那么这个debuggable属性就自动设置为true,反之,如果打包的是release版本的apk文件,那么这个debuggable属性就自动设置为false。


换而言之,就是这个属性不需要我们进行手动配置。
贴上官方文档说明:

Avoid hardcoding the debug mode, leaving itout allows debug and release builds to automatically assign one.It is best to leave out theandroid:debuggable attribute from the manifest. If you do, then the tools willautomatically insert android:debuggable=true when building APK to debug on anemulator or device. And when you perform a release build such as Exporting APK,it will automatically set it to false.If on the other hand you specify a specificvalue in the manifest file, then the tools will always use it. This can lead toaccidentally publishing your app with debug information.

更多相关文章

  1. Android(安卓)环信官方Demo3.3.2详细配置方法
  2. android makefile and build system分析
  3. android jni
  4. Android使用自定义字体的方法
  5. Android的反编译和代码混淆
  6. Android开发之鬼迷心窍(二)
  7. Android(安卓)Studio 友盟api实现apk多渠道打包
  8. android boot.img 拆包,修改adb 具有root权限,以i9250为例
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android各种屏幕尺寸
  2. Part 1:Multi-threading Android(安卓)Ap
  3. cross compile busybox for android
  4. android 书架效果实现
  5. Android简单计算器界面实现
  6. Android(安卓)Studio计算器 app
  7. Android(安卓)GMS认证项总结
  8. Android中数据库升级
  9. Android(安卓)SDK 源代码编译
  10. Talking about Android(安卓)process