问题
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