How to Use Android studio on the Intranet (use gradle offline)

Source: Internet
Author: User

Android studio was released around the 15th, which made the programmers very happy. I also downloaded it and installed it immediately. Many difficulties were encountered during this period. The summary is as follows:

1. Unable to run.

The tragedy is that XP cannot be run in my house. Later I read other people's articles (I'm glad that someone has written my thoughts so soon) to find out the reason, but the main reason is:

You need to add the android_home variable. It indicates that you only need java_home, but you can add this android_home variable.

 

2. Unable to display Chinese Characters

File> Settings> appearance, change the default font to simsun, and restart the software.

 

Iii. Unable to download gradle due to intranet running

Because it is running on the Intranet, it is impossible to download gradle over the Internet.

I finally solved the problem, but I don't know which step is the key. Write it down first. Let's try it.

1. Download gradle from the gradle website. Note: Download gradle-1.6-all.zip(do not use gradle-1.6-bin.zip) and configure gradle_home and path (pointing to % gradle_home/bin ).

Some websites have said that this is okay, but in fact, when I was creating an instance, the error fetch model of Type ideaproject using gradle *** was returned. As I did not know, we downloaded bin.zipand downloaded all.zip. (Other actions are performed during this period, which is not necessarily the key reason ).

2. I copied the projects on the Internet machine, including folders:. gradle and. Android, and then imported the test project.

The actual running condition is that the system has been importing but fails.

Later, I closed this guide and wrote down gradle-1.6-all.zip, then covered the original folder, and then restarted the software. I don't know why.

 

In the future, I installed three computers in Android studio and installed them four times. We will also remind you of this record.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.