mips64el-linux-android-strip error=2, No such file or directory

匿名 (未验证) 提交于 2019-12-02 21:59:42
升级了AS到3.1.2
编译项目提示:
Caused by: [java.io.IOException](java.io.IOException): Cannot run program "D:///Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip"
error=2, No such file or directory

根据提示去到
sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/里面看
只有一个文件,内容是:
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.
旧版本的gradle编译NDK需要这个文件夹,但是新的ndk已经没有这个文件了

因此我们可以下载旧版的ndk 复制
ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/路径下面的内容到我们已经安装的sdk里面
以上是旧版的下载地址

以win10 64位为例
下载这个。解压
将ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/路径下面的内容
复制到上面提示的位置 重新编译,即可
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!