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. Added 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 site will voluntarily provide the corresponding version number download link based on the platform you are currently using.
Windows: Provides the installation package for Windows, including the necessary components for Android Studio 1.0.1 and Android SDK 5.0.1 after installation.
Linux: The download package for Linux seems to include only the 1.0.1 of Android studio, the Android SDK needs to be downloaded separately, and only the main SDK components are not enough to support development.
Installation
WIndows: Directly Double-click the installation process to select the installation path for studio and SDK.
Linux: I installed it under Ubuntu. (We recommend setting the JAVA_HOME environment variable) requires 1.7 or more version number JDK support. The installation process requires selecting the path to the SDK and JDK.
Usage issues Summary
1, how to update the Android SDK in China?
Because we are known for some reasons, we are unable to directly connect to the Android SDK Update Service Update SDK, so we can through the domestic FTP site to use the frequently used 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 in use recently: http://mirrors.neusoft.edu.cn/android/repository/
Update: Extended the other methods available for updating the SDK, see here!
2, solve fetching Android SDK component information load too long problem
Once the installation is complete, assume that it starts directly. Android Studio will go to get Android SDK component information, this process is quite slow. It also often fails to load, causing Android studio to start off. The workaround is not to get the Android SDK component information. Methods such as the following:
1) Enter the Bin folder under the newly installed Android Studio folder.
Locate the Idea.properties file and open it with a text editor.
2) Add a line to the end of the idea.properties file: Disable.android.first.run=true, then save the file.
3) After you turn off Android Studio and start again, you will be able to enter the interface.
This is provided by Cnblog's @sonyi program, available.
In fact, assuming that this change is not made, Android Studio will check for updates every time it starts.
3. Solve Gradle DSL Method not Found:runproguard ()
After you upgrade Gradle or update import some non-android studio project will find an error such as the following:
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 number of the Gradle, Runproguard this method has been discarded, and changed to a new method: Minifyenabled. Therefore, the correct workaround is not to change the Gradle version number. Instead, the Runproguard method name in the corresponding Build.gradle file for each module in the project is changed to minifyenabled.
So changes such as the following:
Original
Buildtypes { Release { runproguard false proguardfiles Getdefaultproguardfile (proguard-android.txt), Proguard-rules.pro}
Changes
Buildtypes { Release { minifyenabled false proguardfiles Getdefaultproguardfile (proguard-android.txt), Proguard-rules.pro}
I'm going to write this right now.
Android Studio 1.x Usage Issues Summary