无法在Windows上使用Android Studio 1.3.2调试NDK样本 [英] Can't debug NDK samples with Android Studio 1.3.2 on Windows

查看:153
本文介绍了无法在Windows上使用Android Studio 1.3.2调试NDK样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Android Studio 1.3.2,NDK r10e,毕业实验插件0.2.0。我克隆了



使用GDB的控制台输出:



现在,当我从Android Studio 1.4 Preview 3中做同样的事情时,我现在得到等待调试器对话框,但它挂在那里。看起来调试器从未连接。



控制台输出Android Studio 1.4:



是否可以使用AS 1.3.2或1.4进行调试?我下一步需要做些什么工作?

解决方案

我升级到Android Studio 1.4测试版,问题是修复的。我现在可以调试我的C ++代码。


I have Android Studio 1.3.2, NDK r10e, gradle experimental plugin 0.2.0. I have cloned the ndk samples repo and carefully followed instructions for the NDK Preview, including creating a Native configuration.

When I select LLDB as the debugger and debug the Teapot NDK sample app (breakpoint in TeapotNativeActivity.cpp, line 393), the app runs, but breakpoint isn't hit as it should when I rotate the teapot. Using GDB for the debugger results in the app freezing on startup. I then have to force quit the app and press stop in the debugger window.

In both cases, debug controls appear (greyed out), and the variables window says, "Connecting", but I never see the "Waiting for Debugger" dialog on my device.

Console output using LLDB:

Console output using GDB:

Now, when I do the same thing from Android Studio 1.4 Preview 3, I now get the "Waiting for Debugger" dialog, but it hangs there. It looks like the debugger never connects.

Console output Android Studio 1.4:

Is it possible to debug with AS 1.3.2 or 1.4? What do I need to do next to get it working?

解决方案

I upgraded to Android Studio 1.4 beta and the issue is fixed. I can now debug my C++ code.

这篇关于无法在Windows上使用Android Studio 1.3.2调试NDK样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆