Android Studio is Google's 13 I/O conference launched in the Android development environment, based on IntelliJ idea. Similar to Eclipse adt,android Studio provides integrated Android development tools for development and debugging.
December 10 Google released the 1.0 official version of Android Studio, adding new features including smart code editing, user interface design tools, performance analysis tools, support for Android 5.0 platform development, and multi-platform support for Windows, Macs, and Linux.
Download
Open the Android SDK website to download, the website will automatically provide the corresponding version download link according to the platform you are currently using.
Windows: An installation package for Windows that contains the necessary components for Android Studio 1.0.1 and Android SDK 5.0.1 after installation
Linux: The download package for Linux appears to contain only the compression pack for Android Studio 1.0.1, the Android SDK needs to be downloaded separately, and only the basic SDK components are not sufficient to support development
Installation
WIndows: Direct Double-click installation, the installation process can choose the installation path of studio and SDK
Linux: I install under Ubuntu, (recommended setting java_home environment variable) requires more than 1.7 JDK support, the installation process needs to select the SDK and JDK path
Usage issues Summary
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.
This is provided by Cnblog's Sonyi program, available.
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.
So modify the following:
Original
Buildtypes { Release { runproguard false proguardfiles Getdefaultproguardfile (proguard-android.txt), Proguard-rules.pro}
Modify
Buildtypes { Release { minifyenabled false proguardfiles Getdefaultproguardfile (proguard-android.txt), Proguard-rules.pro}
This is the first time I've written this.
Android Studio 1.x Usage Issues Summary