Failed to debug Android C ++ application on device (Visual Studio 2015)

Using the Android tools for C ++ in VS15, I was unable to get the debugger to work ... VS can install the application on a test device without problems, 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 checked apk; he has gdbserver.

I am using an LG G 7.0 (V400) device running Android 5.0.2. The project focuses on API level 19, but I also tried to configure API level 21 level and the same question.

Any ideas?

+5
source share
1 answer

I had the same problem, β€œUnable to start debugging” with the LG V400. The solution to this was to shorten the tablet, and now it works fine.

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

After that, I found that some Samsung phones also suffer from the same problem.

+1
source

Source: https://habr.com/ru/post/1232500/


All Articles