CMP in Android Studio build return Command PhaseScriptExecution failed with a nonzero exit code #1
Unanswered
shahzadafridi
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Solution 1Working/Tested on - 01 July 2023 What worked for me ? Open Android Studio Settings/Preferences MAC Users - Android Studio -> Settings or cmd + , Search for "Gradle" In the Gradle JDK dropdown, select Oracle Open JDK-20 If you don't see Oracle Open JDK 20 - then select Download JDK option and download the version 20. Sync the Gradle and you are done! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Solution 2 [This solution works for me]In my case XCode's JAVA_HOME variable caused the problem.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
BUILD FAILED in 1s
Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script /Users/apple/StudioProjects/KMP-App-Template/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-EBA74D7A2AF529B400BD32C0.sh (in target 'iosApp' from project 'iosApp')
(1 failure)
Beta Was this translation helpful? Give feedback.
All reactions