Ultimate Solution for installing and updating Android Studio

Source: Internet
Author: User
Tags android sdk manager

Ultimate Solution for installing and updating Android Studio
Ultimate Solution for installing and updating Android Studio


I wrote a blog post about the failure to update the Android SDK. In fact, this method is equally effective for Android Studio. You can download the small software shared on the online storage, if you are prompted for more details after searching for the channel, you can also choose to update. Refer:Http://blog.csdn.net/gao_chun/article/details/37971461
Some problems encountered during installationThe Fetching Android SDK component information will be displayed when the device is started. This is to obtain the SDK component information. After a moment, download the Andorid SDK on the Setup Wizard-Downloading Components interface, if there is no accident, the failure will be prompted after a long wait.

Solution 1: manually remove the android studio process in the task manager, and then open idea under the bin directory of the Android Studio installation directory. properties file, add a configuration item to the end to disable the start running Wizard: disable. android. first. run = true


Start the program and then open the Project Wizard interface. You need to configure the sdk or use the proxy server to download the sdk.
1. configure the sdk and click configure → project defaults → project structure to go to this interface:

2. Set the Proxy server to download the sdk, open Configure → Settings, enter http in the search box, retrieve the HTTP Proxy, and set the Proxy server. Then exit and put the above in idea. the disable added in the properties configuration file. android. first. run = true: Comments or get rid of it. When you re-open Android Studio, the SDK component is automatically loaded and can be downloaded directly.

Set proxy in Android SDK Manager, Tools --> Options... and Force https ://... sources to befetched using http: // selected. Enable Preview Tools in the check box allows you to Enable the Preview tool:




Solution 2: Open the link shared before the article and download the software. When the channel is searched, ignore method 1 without adding disable. android. first. run = true open Android Studio directly. If you do not find a proxy channel, you can download it normally.
Note: You can also use domestic images.

Import a project from Eclipse to Android StudioAccording to the official introduction, Android Studio can be compatible with existing Eclipse projects, but some operations are required: Upgrade the ADT to the latest version, currently, the version number is 22 (it is best to upgrade components related to ADT to avoid future errors). Select the project to be exported from Eclipse, right-click Export and select Generate Gradle Build Files (for example) under Android ):
After selection, it is not exported to other places. Instead, a build. gradle file is generated in the local project. You can also see that this file is recognized by Android Studio, for example:

 

Then go to Android Studio and select Import Project. You can see that the Project icon in Eclipse has changed to an Android robot icon, which indicates that the conversion is successful. In this case, select Import Project:

 

Eclipse imports an existing Android project to Android Studio. You can start to operate the project!

 

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.