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.