“Gradle project refresh failed” error just after install Studio 2.2.1 (no coding!)

后端 未结 1 571
忘了有多久
忘了有多久 2020-12-20 04:16

I will really appreciate any help or insight here.

I need to config Android Studio (2.2.1 latest) but it is being a pain! Just after to be installe

相关标签:
1条回答
  • 2020-12-20 04:35

    In the debug output, you can see

    Instructing gradle to use java from /home/sidney/bin/android-studio/jre
    

    Now, if you notice that path, that's the JRE, not the Oracle JDK. I'm honestly not sure why Android Studio ships with a buggy Java JRE, what version it is, why it's the default, or even recommended, but find the IDE settings for setting up the correct JDK.

    Hopefully it'll run successfully after that.

    It might take a while to build and download some dependencies the first time, but should be faster after that. If you don't plan on downloading many libraries to start out, you can enable Offline Mode to have it be quicker

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