Android Studio stuck on gradle resolving dependencies

后端 未结 15 1341
臣服心动
臣服心动 2020-12-04 22:11

I\'m new to Android Studio and while creating a new project it stuck at resolving dependencies :app:_debugCompile.

I waited for sometime and even tried

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 22:41

    I had a similar problem (after installing Android Studio and creating a new project this issue occurs). Adding the JAVA_HOME variable hepled to me. Quote from the official help:

    On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.

    Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.

提交回复
热议问题