Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.

最近遇到一问题,问题如下:

Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command '/Users/****/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip''

能build过,就是在installing apk时提示以上错误。原因就是ndk不能再当前gradle下运行,就是gradle版本太低,在项目build.gradle中修改你的版本到更高版本,我之前的是3.0.1,修改后3.1.2,

classpath 'com.android.tools.build:gradle:3.1.2'

再次编译,打包成功。

猜你喜欢

转载自blog.csdn.net/qq_14931305/article/details/82460902