【问题标题】:Compiling NDK via macosx terminal and getting #createnativelibrary通过macos终端编译NDK并获取#createnativelibrary
【发布时间】:2016-10-06 05:33:57
【问题描述】:

我收到了一个为 NDK 应用程序编译的构建版本,但我在运行时不断收到此错误

./gradlew assembleDebug 

在 Mac 上的终端中:

[A problem occurred configuring project ':app'.
 > Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeLibrary
  > Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeLibrary > create(app_jni)
  > java.lang.NullPointerException (no error message)]

【问题讨论】:

    标签: macos compilation android-ndk


    【解决方案1】:

    此处报告了类似问题:https://code.google.com/p/android/issues/detail?id=200553

    听起来您需要将 local.properties 文件中的 ndk.dir 变量设置为正确的 NDK 路径。

    【讨论】:

      猜你喜欢
      • 2019-03-18
      • 2019-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-29
      • 2017-02-06
      • 2015-11-30
      • 1970-01-01
      相关资源
      最近更新 更多