在 Android Studio 中调试原生代码 [英] Debug native code in Android Studio

查看:13
本文介绍了在 Android Studio 中调试原生代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google I/O 2015 承诺在 Android Studio 中调试原生代码.为此,您需要通过 SDK 管理器安装 ndk-bundle 并将 Android Studio 更新到最新版本(Canary 分支).下一步该怎么做?怎么设置?这是源代码的链接.来源

Google I/O 2015 promised debugging native code in Android Studio. To do this, you need to install ndk-bundle through SDK manager and update Android Studio to the latest version (Canary branch). And what to do next? How setup? Here is a link to the source. Source

推荐答案

实际上,即使您下载 ndk-bundle 并将 Android Studio 更新到金丝雀频道中的最新版本(1.3-preview3 截至目前).

Actually, the advertised NDK support isn't available yet, even if you download the ndk-bundle and update Android Studio to the latest version in the canary channel (1.3-preview3 as of now).

SDK 工具团队表示,NDK 支持不是第一个预览版的一部分安卓工作室 1.3.不过它应该很快就会发布 - 他们最近提到了 6 月中旬作为目标.

The SDK tools team said that the NDK support wasn't part of the first previews of Android Studio 1.3. However it should be out soon - they recently mentioned mid-June as a target.

更新:调试支持现已推出.在最初提出问题时情况并非如此 - 感谢从那时起的所有反对票:) 请查看下面 donturner 的答案.

update: the debugging support is out now. It wasn't the case at the time of the initial question - thanks for all the downvotes since then :) please look at donturner's answer below.

这篇关于在 Android Studio 中调试原生代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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