使用正式签名打包APK,打开debug模式报错的问题解决方法
来源:互联网 发布:mac装win10怎么切换 编辑:程序博客网 时间:2024/05/29 04:41
SDK Tools Revision 8以后,如果在AndroidManifest.xml中直接设置打开debug模式:
1
android:debuggable="true"
则在使用正式签名打包APK时,Eclipse会报错如下:
Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one
Issue: Checks for hardcoded values of Android:debuggable in the manifest
Id: HardcodedDebugMode
It’s best to leave out the android:debuggable attribute from the manifest. If you do, then the tools will automatically insert android:debuggable=true when building an APK to debug on an emulator 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 specific value in the manifest file, then the tools will always use it. This can lead to accidentally publishing your app with debug information.
解决方法如下:
将eclipse报错等级降低即可。
Eclipse -> Preferences -> Android -> Lint Error Checking -> Issue -> Security -> HardCodeDebugMode -> Severity: -> Warning即可。如下图。
相关链接:http://developer.android.com/tools/sdk/tools-notes.html# SDK Tools Revision 8
Support for a true debug build. Developers no longer need to add the android:debuggable attribute to the tag in the manifest — the build tools add the attribute automatically. In Eclipse/ADT, all incremental builds are assumed to be debug builds, so the tools insert android:debuggable=”true”. When exporting a signed release build, the tools do not add the attribute. In Ant, a ant debug command automatically inserts the android:debuggable=”true” attribute, while ant release does not. If android:debuggable=”true” is manually set, then ant release will actually do a debug build, rather than a release build.
- 使用正式签名打包APK,打开debug模式报错的问题解决方法
- 使用正式签名打包APK,打开debug模式报错的问题解决方法
- android debug-apk 使用正式的签名文件
- Android studio多渠道打包,同时附上debug运行正式签名的apkAnd自定义渠道apk文件名
- Android Studio调试模式(debug)下使用正式签名的方法
- Android Studio调试模式(debug)下使用正式签名的方法
- 如何在debug模式下,使用正式的签名文件
- 如何在debug模式下,使用正式的签名文件
- 多渠道打包正式签名APK
- Android studio debug使用正式的签名
- apk签名打包报错,一堆警告
- android studio使用gradle打包正式的apk(非签名)
- 制作与正式签名相同的debug签名方法
- Android项目打包正式签名apk
- Android studio build.gradle配置,debug下使用正式签名,重命名apk
- Android中使用Eclipse生成正式签名的APK文件
- Android Trick 14: proguard导致签名后的apk报错:ClassNotFoundException 的问题解决
- 使用DOS签名后APK还是安装不上的问题解决方法
- 接口冒烟测试方法
- maven基本应用小记
- 如何快速下载Genymotion的虚拟器
- IE安全系列之——RES Protocol与打印预览(II)
- SP2-0042:Unknow command 'load data' - rest of line ignored.
- 使用正式签名打包APK,打开debug模式报错的问题解决方法
- HTML DOM position 属性
- swift如何上传带param参数头像或图片,并使用相册图片或者相机
- 搭建Nginx+Java环境
- File size exceeds configured limit (2560000), code insight features not available
- SSH网站开发实录(2)Spring+Spring MVC+Hibernate框架整合
- Hibernate增删改查操作
- boostrap里面的表格样式
- printf、scanf打印格式