Android Studio“不推荐使用当前的 NDK 支持" [英] Android Studio "Current NDK support is deprecated"

查看:21
本文介绍了Android Studio“不推荐使用当前的 NDK 支持"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至 2015 年 1 月,Android Studio 的 NDK 支持仍然无法使用.一条神秘的消息说:将来会提供替代方案."

我想知道这方面的 gradle/google 方向是什么,因为目前无法制定适当的开发计划.

Version 0.7+: 他们建议仍然使用 ndk-build/ant0.8+ 版本:他们引入了最小的 NDK 支持版本 1.0.0:看起来 NDK 支持将成为官方1.0.2 版:现在看来 NDK 支持已被弃用.

我的问题是:

  • 大家都恢复使用 ndk-build 和手工制作的 android.mk 文件了吗?

  • 有没有人在 1.0.0+(gradle ndk 支持)上使用当前已弃用的方法来处理大型项目?

  • 未来将提供的替代方案"会朝什么方向发展?任何内部人士都可以在不违反任何公司规定的情况下回答这个问题吗?

它不是重复的,因为它指的是 Android Studio 和 NDK 的演变,另一个问题指的是一个非常古老的 Android Studio 版本,正如我在我的帖子中详述的,NDK 支持已从版本发生了巨大变化没有明确方向的版本,到现在1.3的发布

解决方案

Google I/O 2015 更新

<块引用>

Android Studio v1.3 预览版 - 我们将发布新版本的 Android工作室.最值得注意的是我们的 Android NDK 的一项非常受欢迎的功能&游戏开发者:C/C++ 代码的代码编辑和调试.基于JetBrains Clion 平台,Android Studio NDK 插件提供C/C++ 代码的重构和代码完成等功能与您的 Java 代码一起.集成了 Java 和 C/C++ 代码支持为 Android 应用程序免费提供一种开发体验开发商.通过 Canary 频道更新到 Android Studio v1.3 和让我们知道您的想法.

来源来自 android 开发者博客

引自 android 开发者博客 这里.

新增功能:

  • 代码补全
  • 代码导航(转到声明,在标题和实施等)
  • 快速修复
  • 意图
  • 重构
  • 源格式
  • 调试
  • ...

有关如何使用它的步骤,请查看此处.

As of Jan 2015 the NDK support for Android studio is still unusable. A cryptic message says: "Alternative will be provided in the future."

I'd like to know what's gradle/google direction on this is since it's impossible to plan a proper development plan at the moment.

Version 0.7+: They suggested to still use ndk-build / ant Version 0.8+: They've introduced a minimal NDK support Version 1.0.0: It looked like NDK support was going to be official Version 1.0.2: It now looks like NDK support is deprecated.

My questions are:

  • Is everyone reverting to ndk-build and hand made android.mk files?

  • Is anyone using the currently deprecated method on 1.0.0+ (gradle ndk support) on a serious size project?

  • What sort of direction the "Alternative will be provided in the future" would go? Is is possible for any insider to answer that without breaking any company rules?

Edit: it's not a duplicate because it was referring to the evolution of Android Studio and NDK, the other question refers to a very ancient version of Android Studio as I've detailed in my post the NDK support has changed drastically from version to version without a clear direction, up to now with the release of 1.3

解决方案

Update from Google I/O 2015

Android Studio v1.3 Preview - We are releasing a new version of Android Studio. Most notable is a much requested feature from our Android NDK & game developers: code editing and debugging for C/C++ code. Based on JetBrains Clion platform, the Android Studio NDK plugin provides features such as refactoring and code completion for C/C++ code alongside your Java code. Java and C/C++ code support is integrated into one development experience free of charge for Android app developers. Update to Android Studio v1.3 via the Canary channel and let us know what you think.

Source from android developers blog here.


New Update 30/7/2015 -> Android Studio v1.3 Released

As a part of the Android 1.3 stable release, we included an Early Access Preview of the C++ editor & debugger support paired with an experimental build plugin. See the Android C++ Preview page for information on how to get started. Support for more complex projects and build configurations is in development.

Quoted from android developers blog here.

Added Features:

  • Code completion
  • Code navigation (go to declaration, jump between header and implementation, etc)
  • Quick fixes
  • Intentions
  • Refactoring
  • Source format
  • Debugging
  • ...

For steps on how to use it, look here.

这篇关于Android Studio“不推荐使用当前的 NDK 支持"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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