Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid hardcoding the debug mode; Warning in Android Manifest

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 ?

like image 557
Chrishan Avatar asked Mar 26 '12 07:03

Chrishan


2 Answers

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

like image 147
Andy Avatar answered Oct 19 '22 19:10

Andy


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.

like image 17
jdowdell Avatar answered Oct 19 '22 19:10

jdowdell