08:11:04,631 INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=3.0 =true .only=true .only.advanced=true .ide=true .only.versioned=3 =3.0.0.18 -init-script /private/var/folders/y_/y7kpydc163g0l6syb4l6tkl9sbry_v/T/ -init-script /private/var/folders/y_/y7kpydc163g0l6syb4l6tkl9sbry_v/T/adle 08:11:04,627 INFO - init script file contents "allprojects 08:11:04,615 INFO - s. - Instructing gradle to use java from /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home 08:11:04,614 INFO - s. - Instructing gradle to use java from /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home Here is the complete log: 08:11:04,598 INFO - e. - Started sync with Gradle for project 'android-app'.
#Android studio 3.0.1 gradle sync failed after java update android
I get the below error in the event log: Gradle sync failed: Cause: error=2, No such file or directoryĬonsult IDE log for more details (Help | Show Log) (10s 806ms)įrom the android studio log file (from Finder in MAC), I see this error: Caused by: java.io.IOException: Cannot run program "hg": error=2, No such file or directory However, the android studio is unable to sync and couldn't build the app.
Please note that when I try building the same in the terminal, I could successfully build using. This is what I have in the gradle file: def buildNumber = "hg id -i -n -r tip".execute().im()
I am trying to get the latest revision number of mercurial repository dynamically and have it in the versionName of the android app.