当前位置:   article > 正文

NDK toolchains报错_cause: unable to find the following components: sy

cause: unable to find the following components: system-image,phone_x86:9 sol

错误信息

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ‘:app’.
> 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 — info or — debug option to get more log output.
* Get more help at https://help.gradle.org
CONFIGURE FAILED in 10s
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

原因

Gradle 3.0.1 需要这个目录…

$ cat ~/sdb/tmp/android-ndk-r17c/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/NOTICE-MIPS64
This mips64el-linux-android-4.9 directory exists to make the NDK compatible with the Android
SDK’s Gradle plugin, version 3.0.1 and earlier, which expects the NDK
to have a MIPS64 toolchain directory.

修改方法

mkdir -p android-sdk-linux/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64
mkdir -p android-sdk-linux/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64
  • 1
  • 2

ndk-bundle/toolchains 下增加多两个空文件夹即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/282278
推荐阅读
相关标签
  

闽ICP备14008679号