调试安卓程序的时候报错,
NativeClientCrashException: Android Studio's C++ debugger stopped unexpectedly
1.首先安装LLDB,在tools->Android->sdk manager 中的SDK tools中找到LLDB并安装.
2.gradle-experimental:0.7.0中debuggable默认设置为了true,如果是早期版本,需要在gradle中ndk下设置debuggable=“true”
3.在Run/Debug Configuration中新建Android Native 设置,设置其debug模式为Hybrid
4。添加断点,可以调试了。