A problem occurred starting process 'command 'E:\android\sdk\ndk-bundle\toolchains\mips64el-linux-a

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.

> A problem occurred starting process 'command 'E:\android\sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''

编译报错我的解决方案:

1. 方法一:

打开 local.properties,将ndk目录的目录加上后缀 .cmd, 例如

ndk.dir=E\:\\android\\sdk\\ndk-bundle.cmd,  重新build就可以正常编译了


2.方法二:

版本回退,  ndk版本在r17版, 很有可能出现这个问题, 那么可以下载r16版就可以了,


  1. 先清除 Android/Sdk/ndk-bundle/ 下的内容
  2. 从 https://developer.android.google.cn/ndk/downloads/older_releases 下载16b版本的ndk到本地, 并解压说, 将解压缩后的所有文件拷贝到 Android/Sdk/ndk-bundle/ 目录下
  3. 重新build工程

猜你喜欢

转载自blog.csdn.net/blakebai/article/details/80910740