I try to accomplish this tutorial to learn debugging NDK apps, but when I set android:debuggable="true"
in AndroidManifest.xml file the following error occurs:
Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one
How to solve it to be able to debug Teapot app?
See official doc for SDK Tools, Revision 8 (December 2010)
Support for a true debug build. Developers no longer need to add the
android:debuggable
attribute to the<application>
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 insertandroid:debuggable="true"
. When exporting a signed release build, the tools do not add the attribute. In Ant, a ant debug command automatically inserts theandroid:debuggable="true"
attribute, while ant release does not. Ifandroid:debuggable="true"
is manually set, then ant release will actually do a debug build, rather than a release build.
Update
If you really want to disable checking for debuggable flag in Eclipse you should do next:
Screen for details:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With