The previous article wrote about downloading the necessary development resources offline, and now take a small look at the installation of Eclipse and Android studio
(i) Eclipse
1, download Download transfer
2, General download Eclipse IDE for Java Developers This is enough, now eclipse compared to eat memory, or compare cards. After downloading the direct decompression on the line.
3, run, configure the ADT (Android development Tools) plugin.
1) Online Installation: Open Eclipse, on the menu bar select Help->install New software appears Install interface Click the Add button, appears the Add site Interface name: Android (here can be customized), enter the URL:
https://dl-ssl.google.com/android/eclipse/(if there is an error, please change HTTPS to HTTP), click OK, the Install screen will appear finally: Click the Yes button to restart Eclipse.
2) Offline Installation: Download ADT, go to the android website download, download it for zip, add the zip package to the input link, click OK, the Install screen will appear finally: Click the Yes button to restart Eclipse.
3) Verify the installation was successful: Open Eclipse, select File---new project, the Android Project option in the New Project dialog box to indicate that the ADT plug-in installation was successful.
4. Configuring the SDK Path
In the Eclipse toolbar, select: Window---Preferences ... Choose android in the left menu, select the SDK location in the Right view box, click Apply, then click OK. To upgrade the SDK version, select the menu Window->android SDK and AVD Manager appears on the Android SDK and AVD manager interface. Select the Update All button and the Choose Package to install interface appears. Select an item on the left, click Accept for installation, click Reject to not install , you can choose to install or update any version. , after determining, select the Install button to enter the installation.
5. New AvD (Android vitural device)
go to the Android SDK and AVD Manager, check vitural Devices on the click the New button. The name can be arbitrarily taken, target select the SDK version you need, SD card size customization, click Create AVD) to test whether the installation was successful .
(ii) Android Studio
1. After the 2013 Google I/O conference, Google came up with an Android Studio.android Studio for Android developers, a new Android development environment based on IntelliJ idea. Similar to the Eclipse ADT plugin, Android Studio provides integrated Android development tools for development and debugging. I feel much more convenient than eclipse in debugging development.
In addition to the IntelliJ feature, Android Studio also offers:
Build support based on Gradle;
Android specific refactoring and quick fixes;
Prompt tool to better control capture of program performance, usability, version compatibility, and other issues;
Support Proguard and application signature function;
Comes with a layout editor that lets you drag and drop UI components, preview layouts on multiple screen configurations, and more.
2, download Android Studio, to Google official download can, perhaps Baidu Cloud and other similar network disk, but not as fast as the official online update. Android is divided into three types,
1) is included in the SDK installation version, if not downloaded the SDK can be directly used in this installation version, download the latest as,sdk is very new. Relatively large, in fact, after installing as is the Decompression SDK.
2) is not included in the SDK installation version, downloaded the SDK, configuration easy to use this is OK.
3) is not included in the SDK non-installed version, downloaded the SDK, want to flexibly configure this, in fact, and the installation version is very similar.
3, after the installation of a long time to initialize, and then download the AVD (simulator) and Android support.
4, in fact, the overall process is very convenient, but due to the Great Wall of the relationship, resulting in a lot of content can not be updated in a timely manner, so will be stuck in the initialization interface.
5. The difference between AS and eclipse:
6. Questions:
1) Error:unknown host ' downloads.gradle.org '.
Learn about configuring HTTP proxies in Gradle.
This is the reason for being the wall, it is possible that the download is not complete, the solution is divided into two ways
(1.) using local Gradl E environment: ctrl + Alt + S open settings, select the Gradle entry, choose" Use local Gradle distributio "and specify the Gradle path you installed.
(2.) Delete the Gradle-xx-bin.zip.part file under this directory and then copy the GRA Dle-xx-bin.zip.lck, change it to Gradle-xx-bin.zip.ok (xx is the version number, for example my latest gradle-2.2.1-all.zip, path in .gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53 )
< Span style= "font-size:14px" > 2) change Module
3) delete module,f4. Select Project Point Delete to remove settings the Gradle project, then close as to remove the Resource Manager module.
4) XP a lot of hardware optimization is not, it is recommended to change the system.
Android Development IDE (Eclipse and Android Studio)