1. 程式人生 > >A problem occurred starting process 'command 'E:\android\sdk\ndk-bundle\toolchains\mips64el-linux-a

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工程