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.
我安装了新的Android Studio。一切都很顺利,但当我尝试创建一个新项目时,它被困在了下载Gradle上。
Is there any way to install the Gradle required by Android Studio
manually? Or any other method to solve this problem ?
有没有办法手动安装Android Studio所需的等级?或者有其他方法来解决这个问题吗?
16 个解决方案
#1
191
It is not stuck, it will take some time normally 5-7 mins , it also depends upon internet connection, so wait for some time. It will take time only for first launch.
它不会被卡住,通常需要5-7分钟,也要依靠互联网连接,所以要等一段时间。它只需要时间首次发射。
Update: Check the latest log file in your C:\Users\<User>\.gradle\daemon\x.y
folder to see what it's downloading.
最新更新:检查日志文件在你C:\Users\ <用户> \ .gradle \程序\ x。看看它在下载什么。
#2
56
Yes, There is.
是的,有。
- Create a new project and you should Shutdown The Android Studio Application.(Because it takes a long time for you).
- 创建一个新项目,你应该关闭Android Studio应用程序。(因为你花了很长时间)。
- Goto C:\Users\{Logged in User}\.gradle folder
- Goto C:\Users\ {登录用户} \。gradle文件夹
- There is a folder there that show you which version of gradle Android Studio requires (e.g. gradle-1.8-bin)
- 那里有一个文件夹,告诉你需要哪个版本的gradle Android Studio(比如1.8-bin)
- Download this version from internet (e.g. gradle-1.8-bin.zip).
- 从因特网上下载这个版本(例如等级1.8-bin.zip)。
- Goto C:\Users\{Logged in User}\.gradle\wrapper\dists\gradle-1.8-bin
- Goto C:\Users\ {登录用户} \ .gradle \包装\ dist \ gradle - 1.8 - bin
- There is a folder here that its name is like a GUID.
- 这里有一个文件夹,它的名字像GUID。
- You should just copy the zip file that you've already downloaded from internet into this folder.
- 您应该将已经从internet下载的zip文件复制到此文件夹中。
- Execute Android Studio and create a new project.
- 执行Android Studio并创建一个新项目。
#3
21
I found the same issue happening on my laptop, despite waiting for quite a long time. This is what I did and it worked for me. Just force close the Android Studio and launch it again. This time, just open the existing project and let it take care of finishing up the process of building/downloading.
我在笔记本电脑上发现了同样的问题,尽管等了很长时间。这就是我所做的,这对我很有效。只需强制关闭Android Studio并再次启动它。这一次,打开现有的项目,让它完成构建/下载过程。
Another option that you could possibly try is that if you look into File --> Settings, there is an option for Gradle location. You could go to the Gradle download site, download a local distribution of Gradle and point the Gradle location to that local directory.
您可以尝试的另一个选项是,如果您查看File——>设置,可以选择Gradle location。您可以访问Gradle下载站点,下载Gradle的本地发行版,并将Gradle的位置指向该本地目录。
#4
12
If you're using OS X, and it continues to hang indefinitely, I'd recommend shutting down Android Studio (may have to force kill), then going to your ~/.gradle directory on the console. You'll see a wrapper/dists directory there and whatever version of gradle AS is trying to download. Check the timestamp of the download underneath the randomly named subdirectory. If you see that it is never changing, most likely your download was interrupted and AS wasn't able to restart it properly and will not unless you delete everything below the dists directory and start over.
如果您正在使用OS X,并且它继续无限期地挂起,我建议您关闭Android Studio(可能必须强制关闭),然后转到您的~/。控制台上的渐变目录。您将在那里看到一个包装器/dists目录,以及正在尝试下载的任何版本的gradle。检查在随机命名的子目录下下载的时间戳。如果您看到它从未更改,那么很可能您的下载被中断,并且无法正确重启它,除非您删除dists目录下的所有内容并重新开始。
So, with AS shutdown delete everything below ~/.gradle/wrapper/dists and then try again with a new project in AS. You can check the progress of the gradle download file (it will end in .part) to make sure that it's growing. Give it plenty of time as it IS a large file.
因此,随着关机,删除~/下面的所有内容。渐变/封装/dists,然后在AS中尝试新的项目。您可以检查gradle下载文件的进度(它将以.part结尾),以确保它正在增长。给它足够的时间,因为它是一个大文件。
That's what finally worked for me.
这就是最终对我起作用的地方。
#5
4
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).
是的,您可以在Android Studio之前手动安装Gradle,首先在任何位置安装Gradle,然后在path变量中添加de gladle location(在环境变量窗口中)。
#6
4
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.)
Gradle实际上已经包含在Android Studio中(至少在Mac OS X版本中)。我必须将它指向已安装的位置,在Android Studio应用程序“package contents”中(可以通过控件/右键单击应用程序图标查看)。
#7
4
Solution :
解决方案:
1). Delete the C:\Users\username.gradle folder
1)。删除C:\Users\username.gradle文件夹
2). Download http://downloads.gradle.org/distributions/gradle-2.2.1-all.zip
2)。下载http://downloads.gradle.org/distributions/gradle-2.2.1-all.zip
3). Create a new project in android studio.
3).在android studio中创建一个新项目。
4). When this time it stucks at gradle building, Force close the android studio.
4).这次当它在gradle building时,强制关闭android studio。
5) Now go to C:\Users\username.gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53 (the end directory name may be different)
5)现在去C:\Users\ username.gradle \包装\ dist \ gradle-2.2.1-all \ c64ydeuardnfqctvr1gm30w53结束(目录名称可能不同)
6) Delete gradle-2.2.1-all.zip.lck and other files from this directory.
6)删除gradle-2.2.1-all.zip。lck和这个目录中的其他文件。
7) Paste the new downloaded gradle-2.2.1-all.zip here.
7)粘贴新下载的level -2.2.1-all。邮政编码。
8) Run the android studio. :)
8)运行android studio。:)
#8
4
Note : My answer seems quite long but its only 2 steps away if you want a correct way to configure with current project.
注意:我的答案似乎很长,但如果您希望使用当前项目配置的正确方式,只需两个步骤。
I found what was the actual problem. Actually, each android project comes with its own version of gradle wrapper.
我发现了实际的问题。实际上,每个android项目都有自己版本的gradle包装。
have a look at dir
看看你的作品
projectname/gradle/wrapper
projectname / gradle /包装
here the properties file says the version of gradle that this project uses:
这里的属性文件显示了这个项目使用的等级的版本:
#Mon Sep 08 13:53:18 PDT 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip
So the issue is if you dont have that version of gradle then it will download that version for you. For instance have a look at this dir, where it downloaded gradle versions for me
所以问题是如果你没有这个版本的gradle,那么它会为你下载这个版本。例如,看看这个目录,它为我下载了等级版本
/home/myusername/.gradle/wrapper/dists
/home/myusername/.gradle/wrapper/dists
looks like
看起来像
Here it will try to download version of gradle if you dont have. If you are comfortable with downloading other version of gradle then you can wait till it completes else
如果没有的话,它会尝试下载等级的版本。如果你喜欢下载其他版本的gradle,那么你可以等到它完成之后
Workaround will be: 1. if project is on git clone it first.
解决方案:1。如果项目在git上,首先克隆它。
- goto your projectdir/gradle/wrapper
- 转到你的管理扫描/ gradle /包装
3.change version of distributionUrl to version that you already have : eg: for 2.2.1-all
3所示。将distributionUrl的版本更改为您已经拥有的版本:例如:for 2.2.1-all
url will be
url将
distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl = https://services.gradle.org/distributions/gradle-2.2.1-all.zip
4.copy gradle-wrapper.jar to your projectdir/gradle/wrapper from
4所示。gradle-wrapper副本。jar到您的projectdir/gradle/包装器。
.gradle/wrapper/dists/gradle-2.1.1-all/4ryh47z6pv2tj9n03uiw8pzc6/gradle-2.2.1/lib/gradle-wrapper.jar(dont forget to rename gradle-wrapper2.2.1.jar to gradle-wrapper.jar)
.gradle /包装/ dist / gradle-2.1.1-all / 4 ryh47z6pv2tj9n03uiw8pzc6 / gradle-2.2.1 / lib / gradle-wrapper。jar(不要忘记重新命名gradle-wrapper2.2.1。jar gradle-wrapper.jar)
- now import your project in studio.. and it works.
- 现在在studio中导入您的项目。和它的工作原理。
#9
3
For Windows Users
对于Windows用户
Use your Network Resource Monitor
使用您的网络资源监视器
Open Task Manager [Ctrl+Shift+Esc]
打开任务管理器(Ctrl + Shift + Esc)
Performance Tab
性能选项卡
Open Resource Monitor (From the bottom)
开放资源监视器(从底部)
First i decided to wait after reading answers here. But how long..? How to make sure it will finish.? They should have provided percentage of download, but they have not. So to know some kind of progress is going on, open this network resource monitor, it will show you some kind of download is going on for the Studio64.exe. IF not (if it shows 0B/Sec), then either network is not available or the application is not responding.
首先,我决定在阅读答案后等待。但是…多久?如何确保它能完成?他们应该提供下载的百分比,但他们没有。为了了解正在进行的某种进展,打开这个网络资源监视器,它将向您展示正在为Studio64.exe进行的某种下载。如果没有(如果显示了0B/Sec),则要么网络不可用,要么应用程序没有响应。
#10
2
What worked for me:
为我工作:
- Create a dummy project, when it gets stuck on the Build screen, kill the studio process.
- 创建一个虚拟项目,当它被困在构建屏幕上时,杀死studio进程。
- Open the android studio and open the project, the projet will be broken
- 打开android studio,打开项目,projet将被打破。
- Create a new project with the dummy project already opened it will create the project without problems
- 用已经打开的虚拟项目创建一个新项目,它将创建一个没有问题的项目
- Close the dummy project and have fun
- 关闭虚拟项目,玩得开心
#11
2
I had fixed this problem by removing the .gradle folder
我通过删除.gradle文件夹解决了这个问题
in windows: C:\Users{Logged in User}.gradle
在windows: C:\用户{登录用户}.gradle
#12
1
The gradle included with Android Studio is located in /Applications/Android Studio.app/plugins/gradle/lib
Android Studio中包含的gradle位于/应用/Android系统中,应用程序/插件/渐变/lib。
To go into the Android Studio.app directory I did cd "Android Studio.app"
进入安卓工作室。应用程序目录,我做了cd "安卓学习。app"
or you could just do cd /Applications/Android\ Studio.app/plugins/gradle/lib
或者你也可以做cd /应用/Android\ studiostudioapp /plugins/gradle/lib。
#13
0
Android Studio comes with Gradle, but it does not have the command line gradle functionality.
Android Studio提供了Gradle,但是没有命令行Gradle功能。
#14
0
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.
快速修复:只要关闭防火墙,android studio似乎想下载一些东西,由于我们的防火墙阻止它下载它想要的文件,它就会被卡住。
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.
注意:关闭防火墙可以降低你的安全性,如果你有时间,你可以在你的防火墙中允许android studio。通过这样做,您可以打开防火墙,同时允许android studio下载它想要的任何东西。
#15
0
This was also taking along time for me (slow connection).
这对我来说也需要时间(慢速连接)。
On Ubuntu (16.04), I was able to monitor the download progress by looking in:
在Ubuntu(16.04)上,我可以通过查找来监控下载进度:
~/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/
running ls -al
from this directory showed the gradle-3.3-all.zip.part
file continuing to grow.
从这个目录运行ls -al显示了level -3.3-all.zip。部分文件继续增长。
The file ended up being 88M.
该文件最终被封为88M。
Please note the 55gk2rcmfc6p2dg9u9ohc3hw9 (and gradle version) may be different for you, please change your command accordingly.
请注意55gk2rcmfc6p2dg9u9ohc3hw9(和等级版本)可能与您不同,请相应地更改您的命令。
#16
0
- Open gradle-wrapper.properties
- 打开gradle-wrapper.properties
- Change From: distributionUrl=https/://services.gradle.org/distributions/gradle-4.4-all.zip To: distributionUrl=http://services.gradle.org/distributions/gradle-4.4-all.zip
- 从:distributionUrl=https/://services.gradle.org/distributions/gradle-4.4-all.zip到:distributionUrl=http://services.gradle.org/distributions/gradle-4.4-all.zip
Note: 1. I dont care about SSL disable for downloading the gradle, but others might be sensitive, so its up to you. 2. Notice the gradle version, in my case its 4.4.
注意:1。我不关心SSL禁用下载等级,但其他人可能是敏感的,所以这取决于你。2。注意到gradle版本,在我的例子中是4.4。
#1
191
It is not stuck, it will take some time normally 5-7 mins , it also depends upon internet connection, so wait for some time. It will take time only for first launch.
它不会被卡住,通常需要5-7分钟,也要依靠互联网连接,所以要等一段时间。它只需要时间首次发射。
Update: Check the latest log file in your C:\Users\<User>\.gradle\daemon\x.y
folder to see what it's downloading.
最新更新:检查日志文件在你C:\Users\ <用户> \ .gradle \程序\ x。看看它在下载什么。
#2
56
Yes, There is.
是的,有。
- Create a new project and you should Shutdown The Android Studio Application.(Because it takes a long time for you).
- 创建一个新项目,你应该关闭Android Studio应用程序。(因为你花了很长时间)。
- Goto C:\Users\{Logged in User}\.gradle folder
- Goto C:\Users\ {登录用户} \。gradle文件夹
- There is a folder there that show you which version of gradle Android Studio requires (e.g. gradle-1.8-bin)
- 那里有一个文件夹,告诉你需要哪个版本的gradle Android Studio(比如1.8-bin)
- Download this version from internet (e.g. gradle-1.8-bin.zip).
- 从因特网上下载这个版本(例如等级1.8-bin.zip)。
- Goto C:\Users\{Logged in User}\.gradle\wrapper\dists\gradle-1.8-bin
- Goto C:\Users\ {登录用户} \ .gradle \包装\ dist \ gradle - 1.8 - bin
- There is a folder here that its name is like a GUID.
- 这里有一个文件夹,它的名字像GUID。
- You should just copy the zip file that you've already downloaded from internet into this folder.
- 您应该将已经从internet下载的zip文件复制到此文件夹中。
- Execute Android Studio and create a new project.
- 执行Android Studio并创建一个新项目。
#3
21
I found the same issue happening on my laptop, despite waiting for quite a long time. This is what I did and it worked for me. Just force close the Android Studio and launch it again. This time, just open the existing project and let it take care of finishing up the process of building/downloading.
我在笔记本电脑上发现了同样的问题,尽管等了很长时间。这就是我所做的,这对我很有效。只需强制关闭Android Studio并再次启动它。这一次,打开现有的项目,让它完成构建/下载过程。
Another option that you could possibly try is that if you look into File --> Settings, there is an option for Gradle location. You could go to the Gradle download site, download a local distribution of Gradle and point the Gradle location to that local directory.
您可以尝试的另一个选项是,如果您查看File——>设置,可以选择Gradle location。您可以访问Gradle下载站点,下载Gradle的本地发行版,并将Gradle的位置指向该本地目录。
#4
12
If you're using OS X, and it continues to hang indefinitely, I'd recommend shutting down Android Studio (may have to force kill), then going to your ~/.gradle directory on the console. You'll see a wrapper/dists directory there and whatever version of gradle AS is trying to download. Check the timestamp of the download underneath the randomly named subdirectory. If you see that it is never changing, most likely your download was interrupted and AS wasn't able to restart it properly and will not unless you delete everything below the dists directory and start over.
如果您正在使用OS X,并且它继续无限期地挂起,我建议您关闭Android Studio(可能必须强制关闭),然后转到您的~/。控制台上的渐变目录。您将在那里看到一个包装器/dists目录,以及正在尝试下载的任何版本的gradle。检查在随机命名的子目录下下载的时间戳。如果您看到它从未更改,那么很可能您的下载被中断,并且无法正确重启它,除非您删除dists目录下的所有内容并重新开始。
So, with AS shutdown delete everything below ~/.gradle/wrapper/dists and then try again with a new project in AS. You can check the progress of the gradle download file (it will end in .part) to make sure that it's growing. Give it plenty of time as it IS a large file.
因此,随着关机,删除~/下面的所有内容。渐变/封装/dists,然后在AS中尝试新的项目。您可以检查gradle下载文件的进度(它将以.part结尾),以确保它正在增长。给它足够的时间,因为它是一个大文件。
That's what finally worked for me.
这就是最终对我起作用的地方。
#5
4
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).
是的,您可以在Android Studio之前手动安装Gradle,首先在任何位置安装Gradle,然后在path变量中添加de gladle location(在环境变量窗口中)。
#6
4
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.)
Gradle实际上已经包含在Android Studio中(至少在Mac OS X版本中)。我必须将它指向已安装的位置,在Android Studio应用程序“package contents”中(可以通过控件/右键单击应用程序图标查看)。
#7
4
Solution :
解决方案:
1). Delete the C:\Users\username.gradle folder
1)。删除C:\Users\username.gradle文件夹
2). Download http://downloads.gradle.org/distributions/gradle-2.2.1-all.zip
2)。下载http://downloads.gradle.org/distributions/gradle-2.2.1-all.zip
3). Create a new project in android studio.
3).在android studio中创建一个新项目。
4). When this time it stucks at gradle building, Force close the android studio.
4).这次当它在gradle building时,强制关闭android studio。
5) Now go to C:\Users\username.gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53 (the end directory name may be different)
5)现在去C:\Users\ username.gradle \包装\ dist \ gradle-2.2.1-all \ c64ydeuardnfqctvr1gm30w53结束(目录名称可能不同)
6) Delete gradle-2.2.1-all.zip.lck and other files from this directory.
6)删除gradle-2.2.1-all.zip。lck和这个目录中的其他文件。
7) Paste the new downloaded gradle-2.2.1-all.zip here.
7)粘贴新下载的level -2.2.1-all。邮政编码。
8) Run the android studio. :)
8)运行android studio。:)
#8
4
Note : My answer seems quite long but its only 2 steps away if you want a correct way to configure with current project.
注意:我的答案似乎很长,但如果您希望使用当前项目配置的正确方式,只需两个步骤。
I found what was the actual problem. Actually, each android project comes with its own version of gradle wrapper.
我发现了实际的问题。实际上,每个android项目都有自己版本的gradle包装。
have a look at dir
看看你的作品
projectname/gradle/wrapper
projectname / gradle /包装
here the properties file says the version of gradle that this project uses:
这里的属性文件显示了这个项目使用的等级的版本:
#Mon Sep 08 13:53:18 PDT 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip
So the issue is if you dont have that version of gradle then it will download that version for you. For instance have a look at this dir, where it downloaded gradle versions for me
所以问题是如果你没有这个版本的gradle,那么它会为你下载这个版本。例如,看看这个目录,它为我下载了等级版本
/home/myusername/.gradle/wrapper/dists
/home/myusername/.gradle/wrapper/dists
looks like
看起来像
Here it will try to download version of gradle if you dont have. If you are comfortable with downloading other version of gradle then you can wait till it completes else
如果没有的话,它会尝试下载等级的版本。如果你喜欢下载其他版本的gradle,那么你可以等到它完成之后
Workaround will be: 1. if project is on git clone it first.
解决方案:1。如果项目在git上,首先克隆它。
- goto your projectdir/gradle/wrapper
- 转到你的管理扫描/ gradle /包装
3.change version of distributionUrl to version that you already have : eg: for 2.2.1-all
3所示。将distributionUrl的版本更改为您已经拥有的版本:例如:for 2.2.1-all
url will be
url将
distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl = https://services.gradle.org/distributions/gradle-2.2.1-all.zip
4.copy gradle-wrapper.jar to your projectdir/gradle/wrapper from
4所示。gradle-wrapper副本。jar到您的projectdir/gradle/包装器。
.gradle/wrapper/dists/gradle-2.1.1-all/4ryh47z6pv2tj9n03uiw8pzc6/gradle-2.2.1/lib/gradle-wrapper.jar(dont forget to rename gradle-wrapper2.2.1.jar to gradle-wrapper.jar)
.gradle /包装/ dist / gradle-2.1.1-all / 4 ryh47z6pv2tj9n03uiw8pzc6 / gradle-2.2.1 / lib / gradle-wrapper。jar(不要忘记重新命名gradle-wrapper2.2.1。jar gradle-wrapper.jar)
- now import your project in studio.. and it works.
- 现在在studio中导入您的项目。和它的工作原理。
#9
3
For Windows Users
对于Windows用户
Use your Network Resource Monitor
使用您的网络资源监视器
Open Task Manager [Ctrl+Shift+Esc]
打开任务管理器(Ctrl + Shift + Esc)
Performance Tab
性能选项卡
Open Resource Monitor (From the bottom)
开放资源监视器(从底部)
First i decided to wait after reading answers here. But how long..? How to make sure it will finish.? They should have provided percentage of download, but they have not. So to know some kind of progress is going on, open this network resource monitor, it will show you some kind of download is going on for the Studio64.exe. IF not (if it shows 0B/Sec), then either network is not available or the application is not responding.
首先,我决定在阅读答案后等待。但是…多久?如何确保它能完成?他们应该提供下载的百分比,但他们没有。为了了解正在进行的某种进展,打开这个网络资源监视器,它将向您展示正在为Studio64.exe进行的某种下载。如果没有(如果显示了0B/Sec),则要么网络不可用,要么应用程序没有响应。
#10
2
What worked for me:
为我工作:
- Create a dummy project, when it gets stuck on the Build screen, kill the studio process.
- 创建一个虚拟项目,当它被困在构建屏幕上时,杀死studio进程。
- Open the android studio and open the project, the projet will be broken
- 打开android studio,打开项目,projet将被打破。
- Create a new project with the dummy project already opened it will create the project without problems
- 用已经打开的虚拟项目创建一个新项目,它将创建一个没有问题的项目
- Close the dummy project and have fun
- 关闭虚拟项目,玩得开心
#11
2
I had fixed this problem by removing the .gradle folder
我通过删除.gradle文件夹解决了这个问题
in windows: C:\Users{Logged in User}.gradle
在windows: C:\用户{登录用户}.gradle
#12
1
The gradle included with Android Studio is located in /Applications/Android Studio.app/plugins/gradle/lib
Android Studio中包含的gradle位于/应用/Android系统中,应用程序/插件/渐变/lib。
To go into the Android Studio.app directory I did cd "Android Studio.app"
进入安卓工作室。应用程序目录,我做了cd "安卓学习。app"
or you could just do cd /Applications/Android\ Studio.app/plugins/gradle/lib
或者你也可以做cd /应用/Android\ studiostudioapp /plugins/gradle/lib。
#13
0
Android Studio comes with Gradle, but it does not have the command line gradle functionality.
Android Studio提供了Gradle,但是没有命令行Gradle功能。
#14
0
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.
快速修复:只要关闭防火墙,android studio似乎想下载一些东西,由于我们的防火墙阻止它下载它想要的文件,它就会被卡住。
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.
注意:关闭防火墙可以降低你的安全性,如果你有时间,你可以在你的防火墙中允许android studio。通过这样做,您可以打开防火墙,同时允许android studio下载它想要的任何东西。
#15
0
This was also taking along time for me (slow connection).
这对我来说也需要时间(慢速连接)。
On Ubuntu (16.04), I was able to monitor the download progress by looking in:
在Ubuntu(16.04)上,我可以通过查找来监控下载进度:
~/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/
running ls -al
from this directory showed the gradle-3.3-all.zip.part
file continuing to grow.
从这个目录运行ls -al显示了level -3.3-all.zip。部分文件继续增长。
The file ended up being 88M.
该文件最终被封为88M。
Please note the 55gk2rcmfc6p2dg9u9ohc3hw9 (and gradle version) may be different for you, please change your command accordingly.
请注意55gk2rcmfc6p2dg9u9ohc3hw9(和等级版本)可能与您不同,请相应地更改您的命令。
#16
0
- Open gradle-wrapper.properties
- 打开gradle-wrapper.properties
- Change From: distributionUrl=https/://services.gradle.org/distributions/gradle-4.4-all.zip To: distributionUrl=http://services.gradle.org/distributions/gradle-4.4-all.zip
- 从:distributionUrl=https/://services.gradle.org/distributions/gradle-4.4-all.zip到:distributionUrl=http://services.gradle.org/distributions/gradle-4.4-all.zip
Note: 1. I dont care about SSL disable for downloading the gradle, but others might be sensitive, so its up to you. 2. Notice the gradle version, in my case its 4.4.
注意:1。我不关心SSL禁用下载等级,但其他人可能是敏感的,所以这取决于你。2。注意到gradle版本,在我的例子中是4.4。