Android Studio Stuck at Gradle Download on create new project

后端 未结 17 1612
盖世英雄少女心
盖世英雄少女心 2020-12-02 04:01

I have installed the new Android Studio. Everything was working fine but when I try to create a new project it gets stuck at downloading Gradle

相关标签:
17条回答
  • 2020-12-02 04:55

    Yes, You can install Gradle manually before Android Studio, first install gradle in any location then add de gladle location to path variable (in Environment Variables Window).

    0 讨论(0)
  • 2020-12-02 04:57

    Gradle is actually included with Android Studio (at least on the Mac OS X version.) I had to point it to the installed location, inside the Android Studio application "package contents" (can view by control/right-clicking on the application icon.)
    Location of gradle inside Android Studio package

    0 讨论(0)
  • 2020-12-02 04:57

    What worked for me:

    1. Create a dummy project, when it gets stuck on the Build screen, kill the studio process.
    2. Open the android studio and open the project, the projet will be broken
    3. Create a new project with the dummy project already opened it will create the project without problems
    4. Close the dummy project and have fun
    0 讨论(0)
  • 2020-12-02 05:06

    The gradle included with Android Studio is located in /Applications/Android Studio.app/plugins/gradle/lib

    To go into the Android Studio.app directory I did cd "Android Studio.app"

    or you could just do cd /Applications/Android\ Studio.app/plugins/gradle/lib

    0 讨论(0)
  • 2020-12-02 05:07

    Quick Fix: Just turn off your firewall, it seems that android studio wants to download something and because our firewall prevents it from downloading the file that it wants it becomes stuck.

    Note: Turning your firewall off can lower your security, if you have time you can just allow android studio in your firewall. By doing this you can turn on your firewall while allowing android studio to download anything that it wants.

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