Android studio installation and configuration FAQ and solutions, android installation and configuration

Source: Internet
Author: User

Android studio installation and configuration FAQ and solutions, android installation and configuration

Android studio is currently a development tool promoted by android companies. Compared with the previous eclipse, Android studio integrates sdks internally to facilitate development. In the past few days, I have also tried to download an android studio from the official website for development. However, I encountered several problems during installation and configuration. I will share with you the following:

Question 1

During installation, it is best to follow the original path and do not modify the path. After I modified the path, some problems occurred and were not resolved.

So it is recommended that you do not modify the installation path during installation ~

Question 2

'Tools. jar' seems to be not in Android Studio classpath.

  • Please ensure JAVA_HOME points to JDK rather than JRE.

The above error is reported during the opening process. The tools package is not found. The solution is to pay attention when setting the java home in the environment variable, and end with \ at the end.

Question 3

Stay on the fetching Android sdk compoment information Page

This interface keeps obtaining information about the android sdk.

Solution:

1) Find the bin directory under the installed Android Studio directory. Find the idea. properties file and open it in a text editor.
2) add a line at the end of the idea. properties file: disable. android. first. run = true, and then save the file.
3) Close Android Studio and restart to enter the interface.

Question 4

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect

Google network connection timeout

 Solution:

The default address for SDK installation is C: \ Users \ Administrator \ AppData \ Local \ Android \ sdk. Open SDKManager, select Options under Tools, and check the Options.That is, the first option in others.

 

Open the hosts file in C: \ WINDOWS \ system32 \ drivers \ etc, and add the following content in the last line:

203.208.46.146 www.google.com

74.125.113.121 2.16.android.com

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com

 

I encountered the above four problems during the opening process. After solving these problems, I opened the android studio interface. If you still have other problems, please contact me.

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.