Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lib/gdbserver Error:Permission denied

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... :-(

like image 254
Christian Stavro Avatar asked Jun 12 '13 04:06

Christian Stavro


1 Answers

You need to change your installLocation attribute in your manifest. Try this:

android:installLocation="internalOnly"
like image 149
Jelle van Es Avatar answered Nov 08 '22 23:11

Jelle van Es