无法在 Windows 上使用 Android Studio 1.3.2 调试 NDK 示例 [英] Can't debug NDK samples with Android Studio 1.3.2 on Windows
问题描述
我有 Android Studio 1.3.2、NDK r10e、gradle 实验插件 0.2.0.我已经克隆了
使用 GDB 的控制台输出:
现在,当我在 Android Studio 1.4 Preview 3 中做同样的事情时,我现在得到Waiting for Debugger"对话框,但它挂在那里.调试器似乎从未连接过.
控制台输出 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屋!