I'm trying to debug my android application in Eclipse/ADT by selecting:
Debug As->Android Native Application
However, after building I get:
gdbserver output:
run-as: exec failed for lib/gdbserver Error:Permission denied
Verify if the application was built with NDK_DEBUG=1
I am indeed building with NDK_DEBUG=1
Any ideas on how to fix this, or at least why this shows up?
I'm trying to debug the app on a droid bionic, Android Ver 4.1.2
NDK Ver: r8e
I'm not sure what extra information to provide, so please feel free to ask away.
EDIT/SOLVED!!
I needed to change the installLocation attribute in my manifest to:
android:installLocation="internalOnly"
I can't believe how much time i spent on this... :-(
You need to change your installLocation attribute in your manifest. Try this:
android:installLocation="internalOnly"
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