【问题标题】:How to get started with Android Studio C++ development如何开始使用 Android Studio C++ 开发
【发布时间】:2015-11-15 23:59:18
【问题描述】:

我在 Google I/O 15 上听说 Android Studio 现在已经支持 C++,官方的documentation for the NDK 只有 Eclipse 的说明。

如何开始使用 Android Studio 进行 Android C++ 开发?

【问题讨论】:

标签: c++ android-studio android-ndk


【解决方案1】:

Android NDK Preview 网站上有详细说明。

它的要点

  • DownloadAndroid Studio 1.3+
  • Tools > Android > SDK Manager 安装 NDK 包
  • 使用 File > Import Sample 导入 hello-jn 示例(注意:此示例使用新的 gradle-experimental 插件)
  • 单击 Run > Edit Configurations... 并添加一个新的 Android Native 配置
    (来源:android.com

  • 照常运行和调试您的应用程序

从那里尝试一些事情:

【讨论】:

    猜你喜欢
    • 2015-08-03
    • 2011-08-11
    • 2014-06-05
    • 1970-01-01
    • 2010-11-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多