Android Studio - Gradle sync error on gradle-diagnostics-X.X.X.jar

后端 未结 8 2124
轻奢々
轻奢々 2021-01-31 13:28

I\'ve just updated Android Studio and I can\'t sync my project anymore.

The event log reports:

Gradle sync failed: /Applications/Android Studio.app/Conte         


        
相关标签:
8条回答
  • 2021-01-31 13:58

    check your .bash_profile file and make sure your GRADLE_HOME points to a valid path, if things were working and you face this issue after android studio update, chances are your gradle got updated too. Here is the example of my gradle home in .bash_profile: export GRADLE_HOME=/Applications/Android\ Studio.app/Contents/gradle/gradle-2.14.1/bin

    0 讨论(0)
  • 2021-01-31 14:01

    For me helped to set chmod on the .gradle directory to 777. After this whole Android studio started working correctly.

    0 讨论(0)
提交回复
热议问题