1. 程式人生 > >06 CoCos Creator-mips64el-linux-android

06 CoCos Creator-mips64el-linux-android

1. 報錯想象

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

編譯模式:release
使用 Android Studio 工程:D:\CoCosCreator\HelloWorld\build\jsb-link\frameworks\runtime-src\proj.android-studio
正在生成 apk 檔案...
正在執行:'"D:\CoCosCreator\HelloWorld\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat" --parallel --info assembleRelease'

....

SDK initialized in 87213 ms
Using incremental javac compilation for :hello_world debug.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':hello_world'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 6m 44s
執行命令出錯,返回值:1。

2. 檢視Android Studio 的 NDK 位置

NDK位置.png

發現確實沒有 mips64el-linux-android

toolchains

3. 解決方案

下載 mips64el-linux-android

Android開發者的官方網站

android-ndk-r16b-windows-x86_64.zip

複製.png