在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下 读写文件
  2. 关于 Android 程序使用 Support Library 属性的几点说明
  3. Android中经常用到的方法--SDcard下文件的操作
  4. Android 将被依赖的库项目打包成aar(非jar)文件
  5. android中实现多个apk文件
  6. Android 文件系统移植总结
  7. Android 瘦身之道 ---- so文件

随机推荐

  1. Design Support Library
  2. Linux常用基本命令&Android系统编译命令
  3. Android数据存储方式(一)文件
  4. Android文件系统深入剖析
  5. Android 项目编译过程
  6. 你知道安卓和星巴克这些名字是怎么来的吗
  7. XCoreRedux框架:Android(安卓)UI组件化与
  8. Android之数据存储详解(二)之SQLite数据库
  9. 如何快速修改/更换android应用的包名
  10. Android AudioTrack分析