Avoid hardcoding the debug mode; Warning in Android Manifest

只愿长相守 提交于 2019-12-18 18:51:04

问题


After updating my ADT plugin to version 17 I'm getting a warning massage saying

Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one

There wasn't such message before the update.

How can I avoid this warning message ?


回答1:


Yup, just noticed this too. I removed the debuggable attribute from the manifest, and I can now both run the app in debug mode and export it to a market-ready APK file without changing any code.

Slick!

Full explanation here https://stackoverflow.com/a/4580630/682754




回答2:


Ran into this myself today and was frustrated with the accepted answer; I don't want to trust Eclipse to "do the right thing" when it so often doesn't.

The answer to the question asked is to go to Window->Preferences->Android->Lint Error Checking or Project Properties->Android Lint Preferences and change the severity of the warning.




回答3:


here is the solucion for your problem you have to follow the tutorial

http://youtu.be/SLM01rdQa8s



来源:https://stackoverflow.com/questions/9868241/avoid-hardcoding-the-debug-mode-warning-in-android-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!