Android Studio - Gradle sync error

后端 未结 3 1165
情深已故
情深已故 2020-12-09 10:04

I have a synchronization error in Android Studio. I Use: 1.0.2 version from canary channel. Gradle: I tried with version 2.2.1(downloaded from https://www.g

相关标签:
3条回答
  • 2020-12-09 10:52

    Sorry for a late answer but I hope it will still be useful. I faced the same problem and deleting .gradle directories didn't help.

    Try to reinstall your JDK. In my case I uninstalled my JDK 1.7.0_60 (x64) and JDK 1.8.0_5 (x86). Then I installed JDK 1.8.0_45 (x64) and the problem has gone. HTH.

    0 讨论(0)
  • 2020-12-09 10:57

    After updating to Android Studio 2.3 I received this error and the top answer didn't work. Following an answer from here I finally got it fixed.

    Go to

    gradle → wrapper → gradle.wrapper.properties

    And change to distributionUrl to the following:

    distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
    
    0 讨论(0)
  • 2020-12-09 11:01

    Delete the .gradle directories both in your home directory and at the top level of your project. Gradle's cache directoires aren't affected by the "Clear caches and restart" option.

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