Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to debug Android c++ app on device (Visual Studio 2015)

Using the Android tools for C++ in VS15, I've been unable to get the debugger working... VS is able to install the app on the test device without an issue, but debugging does not work.

Unable to start debugging. Non-debuggable application installed on the target device. Required file '/data/data/com.AndroidTest/lib/gdbserver' could not be found on the device. Please reinstall the debuggable version.

I've inspected the apk; it does have gdbserver.

The device I'm using is a LG G 7.0 (V400) running Android 5.0.2. The project targets API level 19, but I've also tried targeting API level 21 and still the same issue.

Any ideas?

like image 326
user8709 Avatar asked Nov 10 '22 04:11

user8709


1 Answers

I've had the exact same problem, "Unable to start debugging" with the LG V400. The solution to that was to root the tablet, and it works just fine now.

I used this in order to root my device: http://sourceforge.net/projects/avicohh/files/Android/LG_One_Click_Root_by_avicohh.exe/download

After that I've found some Samsung phones also suffer from that same issue.

like image 107
Trinidad Avatar answered Jan 04 '23 03:01

Trinidad