Avoid hardcoding the debug mode; Warning in Android Manifest

Chrishan picture Chrishan · Mar 26, 2012 · Viewed 33k times · Source

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 ?

Answer

Andy picture Andy · Mar 30, 2012

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