无法在设备上调试Android c ++应用程序(Visual Studio 2015)

use*_*709 5 android-ndk visual-studio-2015

在VS15中使用适用于C++的Android工具,我无法使调试器正常工作...... VS能够在测试设备上安装应用程序而不会出现问题,但调试不起作用.

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.
Run Code Online (Sandbox Code Playgroud)

我检查了apk; 它确实有gdbserver.

我正在使用的设备是运行Android 5.0.2的LG G 7.0(V400).该项目的目标是API级别19,但我也尝试过针对API级别21,但问题仍然存在.

有任何想法吗?

Tri*_*dad 1

我在使用 LG V400 时遇到了完全相同的问题,“无法开始调试”。解决方案是对平板电脑进行root,现在一切正常。

我用它来root我的设备: http://sourceforge.net/projects/avicohh/files/Android/LG_One_Click_Root_by_avicohh.exe/download

之后我发现一些三星手机也遇到了同样的问题。