无法与Android 1.3.2工作室在Windows调试NDK样本 [英] Can't debug NDK samples with Android Studio 1.3.2 on Windows

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

问题描述

我的Andr​​oid 1.3.2工作室,NDK r10e,摇篮实验插件0.2.0。我已经克隆了 NDK样本回购并认真遵循说明了的 NDK preVIEW ,包括创建一个本地配置。

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.

当我选择LLDB作为调试器和调试茶壶NDK示例应用程序(断点TeapotNativeActivity.cpp,线393),应用程序运行,但断点打不到,因为它应该当我旋转茶壶。使用GDB调试器会导致应用程序冻结在启动时。然后,我要强制退出应用程序和preSS停在调试器窗口。

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.

控制台输出使用LLDB:

Console output using LLDB:

控制台输出:

现在,当我做同样的事情,从机器人工作室1.4 preVIEW 3,我现在明白了等待调试器对话框,但它挂在那儿。它看起来像调试从来没有连接。

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.

控制台输出的Andr​​oid 1.4演播室:

Console output Android Studio 1.4:

是否有可能与调试AS 1.3.2或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?

推荐答案

我升级到Android 1.4工作室β和问题是固定的。我现在可以调试我的C ++ code。

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

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

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