Application之属性debuggable
来源:互联网 发布:js 获取div自定义属性 编辑:程序博客网 时间:2024/06/02 00:01
会看到有人说只有当你把application中的debuggable设置为true的时候,才可以在机器上进行调试,如果不设置的话,默认为false。
今天楼主尝试了下,这句话是错的。
我新建了个程序,并且没有设置debuggable该属性,即它为false,楼主将他安装在手机上,并设置断点,发现依旧可以调试。
有人说这是因为系统中的一个属性叫ro.debuggable值为1,所以默认所有应用程序都是可以调试的,所以不管应用程序中的debuggable为何值。但是我在命令行中看了下该值,发现该值为0,现在楼主呵呵了。
后来我就去androidManifest中去设debuggable的值,发现报错:
中间黄色框的话是这样子的:
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中如果不设置debuggable,他默认是可调试的,即为true。但是如果你发布的是一个Release版本,那么它又会默认为false。
- Application之属性debuggable
- 获取application debuggable模式
- no debuggable application
- android:debuggable属性
- Android studio: No debuggable Application
- Application之 属性
- Application之属性restoreAnyVersion
- Android Studio :no debuggable application 解决方案
- <application android:debuggable="false" 有什么用?
- Non-debuggable application installed on the target device
- 在AndroidStudio中出现android no debuggable application
- Android Application 之 allowBackup 属性浅析
- WPF入门之Application属性方法
- Application 属性
- ERROR: Non-debuggable application installed on the target device错误解决
- Android Studion的Monitor中显示No Debuggable Application的解决方法
- Android 笔记之 application在AndroidManifest中得属性
- 解决方案debuggable
- LIBSVM使用方法及参数设置
- 软件开发分层的好处
- 《人月神话》读书笔记part2
- HDU 4552 怪盗基德的挑战书 (KMP + DP) 或 后缀数组
- HttpUnit
- Application之属性debuggable
- 启动eclipse 报错org.osgi.framework.BundleException
- MVC的写法
- Eclipse恢复已删除的文件和代码、svn使用了还原,但本地的没有提交找回没提交代码的方法
- python之多线程
- 利用scrollview 实现类似微信,微博中查看多张图片,实现缩放拉伸
- 我学习CRC32、CRC16、CRC原理和算法的总结(与WINRAR结果一致)
- iOS工程通用模块介绍
- mfc picture控件响应鼠标右键事件