无法在 android studio 中导入新的 Gradle 项目 [英] Failed to import new Gradle project in android studio
问题描述
我在使用 android studio 创建新项目时遇到错误.下面我附上了错误信息的截图..我正在使用 Windows 7(64 位)请帮帮我.
I got the error when i create a new Project using android studio. below i attached a screenshots of error message.. I am using windows 7 (64 bit) Please help me.
推荐答案
我在通过 AndroidStudio
下载 gradle
时也遇到了问题.我尝试了以下方法.
I also had an issue downloading gradle
through AndroidStudio
. I tried the following.
- 转到您安装工作室的
AndroidStudio
目录,例如D:\User\AndroidStudio
- 在
AndroidStudio
中,转到\AndroidStudio\plugins\gradle\lib
并复制gradle.jar
- 将
gradle.jar
文件粘贴到\AndroidStudio\lib
目录中. - 直接从 Gradle 下载 gradle
- 复制
gradle-1.6-bin.zip
的内容-解压后的zip文件-(bin, media, init.d, lib folders)
到\AndroidStudio\plugins\gradle
- 重启
AndroidStudio
- Go to your
AndroidStudio
directory where you installed your studio LikeD:\User\AndroidStudio
- In
AndroidStudio
go to\AndroidStudio\plugins\gradle\lib
and copygradle.jar
- Paste
gradle.jar
file in\AndroidStudio\lib
directory. - Download gradle directly from Gradle
- Copy the contents of
gradle-1.6-bin.zip
- After extracting zip file -(bin, media, init.d, lib folders)
to\AndroidStudio\plugins\gradle
- Restart
AndroidStudio
* 更新答案 *
在按照上面列出的所有步骤操作后,如果它不起作用,请检查以下内容.
And after following all the steps listed above, if it is not working, Kindly check below things.
1) 请从您的用户中删除 .gradle
文件夹,例如 C:\Document and Settings\AndroidUser\***\.gradle
1) Please delete .gradle
folder from your user like C:\Document and Settings\AndroidUser\***\.gradle
2) 您可以在 Settings
中检查您的 HTTP Proxy
.
2) You can check your HTTP Proxy
in Settings
.
希望这有帮助!
这篇关于无法在 android studio 中导入新的 Gradle 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!