Several issues with installing Android Studio installation

Source: Internet
Author: User

1, how to update the Android SDK in China?

Due to some well-known reasons, we are unable to directly connect to the Android SDK Update Service Update SDK, so you can use the domestic FTP site to use common SDK components such as Android Platform-tools, samples, Build-tools, Direct downloads such as System image are added to the official website's SDK for reuse.

An FTP site that was recently used: http://mirrors.neusoft.edu.cn/android/repository/

Of course, you can also use the VPN directly after the update, but it is relatively slow.

2. Solve fetching Android SDK component information loading problem

After the installation is complete, if you start directly, Android Studio will go to get the Android SDK component information, this process is quite slow and often fails to load, causing Android studio to start up. The solution is not to get the Android SDK component information. Here's how:

1) Go to the bin directory in the newly installed Android Studio directory. Locate the Idea.properties file and open it with 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) after shutting down Android studio and restarting, you can enter the interface.

In fact, if you don't make this change, Android Studio will check for updates every time it starts.

3. Gradle DSL Method Not Found:runproguard ()

After you upgrade Gradle or update import some non-android studio project will find the following error

Gradle DSL method not found: ' Runproguard () '

After reviewing the official documentation (HTTP://TOOLS.ANDROID.COM/TECH-DOCS/NEW-BUILD-SYSTEM), it was found that in the new version of Gradle, Runproguard This method was obsolete, and changed to a new method: Minifyenabled. Therefore, the correct workaround is not to modify the version number of the Gradle, but instead to change the Runproguard method name in the Build.gradle file corresponding to each module in the project to minifyenabled.

Several issues with installing Android Studio installation

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.