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, 例如

<pre style="box-sizing: border-box; outline: 0px; padding: 8px; margin: 0px 0px 24px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: 宋体; font-size: 12pt; line-height: 22px; color: rgb(0, 0, 0); word-break: break-all; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; background-color: rgb(255, 255, 255);">ndk.dir=E:\android\sdk\ndk-bundle.cmd, 重新build就可以正常编译了

2.方法二:

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

  1. 先清除 Android/Sdk/ndk-bundle/ 下的内容
  2. https://developer.android.google.cn/ndk/downloads/older_releases 下载16b版本的ndk到本地, 并解压说, 将解压缩后的所有文件拷贝到 Android/Sdk/ndk-bundle/ 目录下
  3. 重新build工程
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容