Android中Debuggable设置问题
16lz
2022-05-03
在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.
更多相关文章
- Android(安卓)环信官方Demo3.3.2详细配置方法
- android makefile and build system分析
- android jni
- Android使用自定义字体的方法
- Android的反编译和代码混淆
- Android开发之鬼迷心窍(二)
- Android(安卓)Studio 友盟api实现apk多渠道打包
- android boot.img 拆包,修改adb 具有root权限,以i9250为例
- NPM 和webpack 的基础使用