如何设置Android Studio使其完全脱机工作? [英] How do I set up Android Studio to work completely offline?
问题描述
我的带宽非常慢,因此我试图将所有必需的文件保留在本地计算机上,以使Android Studio完全脱机使用.当我单击新建项目"时,它总是尝试下载一个名为 gradle-1.6-bin.zip 的文件,该文件我已下载并尝试通过插件管理器在本地安装,但它给了我一个错误:
I have very slow bandwidth, so I'm trying to keep all the required files on the local machine to work with Android Studio completely offline. When I click on "New Project" it always tries to download a file named gradle-1.6-bin.zip which I downloaded and tried to install locally via the plugin manager but it gives me an error:
无法从gradle-1.6-bin.zip文件中加载插件描述符
fail to load plugin descriptor from file gradle-1.6-bin.zip
那么我还需要下载其他哪些文件,以及如何正确安装它们才能与Android Studio脱机使用?
So what other files do I need to download and how do I install them properly to work offline with Android Studio?
推荐答案
好的,我终于克服了这个问题.解决方法如下:
OK guys I finally overcame this problem. Here is the solution:
-
下载
gradle-1.6-bin.zip
以便离线使用.
将其粘贴到C:\Users\username\.gradle
目录中.
打开Android Studio并单击创建新项目"选项,离线时您将不再收到此错误.
Open Android Studio and click on the "Create New Project" option and you will not get this error any more while offline.
您可能还会遇到其他类似错误:
You might get some other errors like this:
不用担心,只需忽略它即可.您的项目已创建.
Don't worry, just ignore it. Your project has been created.
因此,现在单击导入项目"并转到路径C:\Users\username\AndroidStudioProjects
并打开您的项目,您就完成了.
So now click on "Import Project" and go to the path C:\Users\username\AndroidStudioProjects
and open your project and you are done.
这篇关于如何设置Android Studio使其完全脱机工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!