Native libs issue starting process command

核能气质少年 提交于 2020-01-06 06:04:32

问题


Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.

A problem occurred starting process 'command 'C:\Users\LENOVO\AppData\Local\Android\Sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''


回答1:


I had a similar problem and the solution was to increase the maximum heap size for both Gradle and Android Studio. Try to put this in your gradle.properties file:

org.gradle.jvmargs=-Xms1548m -Xmx6g

Also to increase the maximum heap size of Android Studio follow the instructions here.

If it doesn't help either you can tell gradle not to strip the debug symbols at all, but I wouldn't advise doing that.




回答2:


I had the same problem and my solution was to uninstall the ndk in SDK Tools and it worked. Maybe the project doesn't need a ndk.




回答3:


I've faced the same issue, all I did is run the command in Terminal

rm -rf ~/Library/Android/sdk/ndk-bundle



来源:https://stackoverflow.com/questions/50392957/native-libs-issue-starting-process-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!