Android Studio 0.8.2 - Gradle project sync failed

后端 未结 10 744
轮回少年
轮回少年 2021-01-17 09:51

In hindsight I should not have enabled L build stuff.

I am new to programming and I created a new Android Studio project which is throwing the Gradle errror right aw

相关标签:
10条回答
  • 2021-01-17 10:33

    The most simple solution (at least for me) would be:

    Go to SDK manager (with Administrator rights), scroll down till the end, download "Android Support Library".

    And it works (don't forget Administrator rights).

    I am using windows 7 works properly thanks igor

    0 讨论(0)
  • 2021-01-17 10:36

    When installing Android Studio on Mac OSX Sierra, I received an error that my JVM is not valid. So I came here to a different post and installed Apple's legacy version and the up-to-date version. It worked. Then when I was creating a project I ran into another error which was the Gradle sync issue. Came here (this very post by "Mac") again and changed the JDK version that Android Studio was pointing to (obviously I chose to "detect" instead of browsing for the up-to-date version). Everything is working fine now.

    0 讨论(0)
  • 2021-01-17 10:37

    Mine was looking for the Java SDK in "Macintosh_HD>System>Library>Java> etc." but my most recent update was in "Macintosh_HD>Library>Java etc."

    I set this after clicking in the error window saying 'open SDK' 'open file' which brings you to the screen where to set the path for Java.

    0 讨论(0)
  • 2021-01-17 10:41

    For me Changing the JDK path worked. I changed it to /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

    in File--> ProjecStructure-> JDK location.

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