【问题标题】:Android Studio NDK/SDK version errorAndroid Studio NDK/SDK 版本错误
【发布时间】:2018-04-10 12:08:07
【问题描述】:

大家好!

我昨天切换到Android Studio,我昨天能够编译我的“cocos2d-x 游戏”。但是在我的Application.mk 和gradle.properties 中添加了太多的 ABI(armeabi-v7 和 x86)后,运行游戏时出现了以下错误:

Error:FAILURE: Build failed with an exception.
.....
Android NDK: android-10 is unsupported. Using minimum supported version android-14.    
.....

BUILD FAILED in 4m 45s

现在我该怎么做才能像以前一样运行我的游戏?谢谢。

【问题讨论】:

  • 根据建议更新版本。 android-10 和 android-14 是非常旧的版本,从 10 切换到 14 应该没有任何问题
  • @pleft 我应该编辑哪些文件来更新版本?

标签: android android-studio android-ndk cocos2d-x android-sdk-tools


【解决方案1】:

根据建议更新版本。 android-10 和 android-14 是非常旧的版本,从 10 切换到 14 应该没有任何问题

检查您的Application.mk 并添加或更改(如果它指的是android-10)该行:

 APP_PLATFORM := android-14

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-17
    • 2015-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-03
    • 1970-01-01
    相关资源
    最近更新 更多