A problem occurred starting process 'command 'D:\Android\AS\Sdk\ndk-bundle\toolchains\mips64el-li...

前沿

在进行App版本迭代时发现,项目无法正常编译,提示错误:

Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command 'D:\Android\AS\Sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''

解决办法

项目中用到了ndk,怎么解决呢?
1.简单粗暴 ,但不彻底。直接修改项目中 local.properties 文件


ndk.dir=D\:\\Android\\AS\\Sdk\\ndk-bundle
改为
ndk.dir=D\:\\Android\\AS\\Sdk\\ndk-bundle.cmd

2.彻底玩法 ,一劳永逸 ,降版本,NDK 17降到16


image.png

这里我顺便给下NDK Version 16 的下载链接
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip

NDK Version 17 (目前最新版)
https://dl.google.com/android/repository/android-ndk-r17-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r17-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17-linux-x86_64.zip

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容