Android Development Platform Setup

Source: Internet
Author: User
Tags android sdk manager

Android Development Platform Setup
Android development platform is mainly the Eclipse and Android studio two platforms, and the Eclipse development platform has integrated ADT ADT Bundle and modular Eclipse, the Android development platform is built in the following three ways, http:// www.androiddevtools.cn/This site has a lot of relevant development tools available for download.

"Method One": Jdk+adt Bundle,adt Bundle The latest version is adt-bundle-windows-x86-20140702, which is Adt23.0.2+andriod 4.4 api20 SDK Platform, Only Android 4.4 version of the program can be developed, not the development of the Android 5.0 program, because Android 5.0 enabled the art virtual machine, instead of the Dalvik virtual machine, and support 64-bit platform.
1, first to download and install the Sun company JDK, if the 64-bit system will install the 64-bit version of the JDK
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Windows x86182.01 MB Jdk-8u77-windows-i586.exe
Windows x64187.31 MB Jdk-8u77-windows-x64.exe
After downloading the JDK and installing it, also modify the environment variables, provide a VBS script, the code "E:\Program files\java\jdk1.7.0_80" according to the local JDK installation location modified, double-click to set the environment variables:
Jdkset1.7.0_80.vbs
Dim msg
Msg=msgbox ("Run script will overwrite environment variable, OK to run?") ", Vbokcancel+vbexclamation," Run script Confirmation ")
If Msg=vbok Then
Dim wsh
Set WSH = WScript.CreateObject ("Wscript.Shell")
Wsh. Environment ("System"). Item ("java_home") = "E:\Program files\java\jdk1.7.0_80"
Wsh. Environment ("System"). Item ("path") = "%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%java_home%\bin;%java_home%\jre\ Bin
Wsh. Environment ("System"). Item ("classpath") = ".; %java_home%\lib; "
End If

2. Download ADT Bundle with integrated Eclipse IDE and ADT Plugin
The ADT bundle contains Eclipse, ADT plug-ins, and SDK Tools, which are already integrated ides that can be started with the installation of a JDK, and recommend that beginners download ADT bundles without having to toss out the development environment.
http://www.androiddevtools.cn/This site has a lot of relevant development tools, ADT Bundle, search the page for ADT Bundle, the latest version is 23.0.2, divided into 32-bit and 64-bit versions.

"Method Two": Jdk+eclipse+adt+android SDK, but Google discontinued support for Eclipse ADT plug-ins and Ant-compiled systems at the end of 2015.
1. Download and install the JDK, and set the environment variables.
2. Download eclipse,http://www.eclipse.org/downloads/download Eclipse IDE for Java EE developers
Eclipse is an open-source, Java-based, extensible development platform. For its part, it is just a framework and a set of services for building a development environment through plug-in components. Fortunately, Eclipse comes with a standard set of plugins, including Java development tools (Java Development kit,jdk). Eclipse was originally developed by IBM as an alternative business software for the next Generation IDE development environment of Visual age for Java, which was contributed to the open source community in November 2001 and is now made up of the non-profit software vendor Alliance Eclipse Foundation (eclipse Foundation) management. In 2003, Eclipse 3.0 chose the OSGi Service platform specification as the runtime schema. June 2007, Stable version 3.3 released, June 2008 issued codenamed Ganymede 3.4 version, June 2009 release codenamed Galileo 3.5 version, June 2010 release codenamed Helios 3.6 version, June 2011 released codenamed Indigo 3.7 Edition; June 2012 release Code for J Version 4.2 of Uno, released in June 2013, version 4.3 of the code named Kepler, June 2014 release of the 4.4 version of Luna, and June 2015 project release code for the 4.5 version of Mars.

may need to modify Eclipse.ini after download, otherwise the memory is small may appear failed to create the Java virtual machine
The contents of the original document are as follows:
-startup
Plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
Org.eclipse.epp.package.jee.product
--launcher.defaultaction
OpenFile
--launcher. Xxmaxpermsize
256M
-showsplash
Org.eclipse.platform
--launcher. Xxmaxpermsize
256m
--launcher.defaultaction
OpenFile
-vmargs
-dosgi.requiredjavaversion=1.5
-xms40m
-xmx512m

The modified Eclipse.ini file is as follows:
-startup
Plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
Org.eclipse.epp.package.jee.product
--launcher.defaultaction
OpenFile
--launcher. Xxmaxpermsize
128M
-showsplash
Org.eclipse.platform
--launcher. Xxmaxpermsize
128m
--launcher.defaultaction
OpenFile
-vmargs
-dosgi.requiredjavaversion=1.6
-xms40m
-xmx256m
3. Download install Android SDK Tools, because the latest version of ADT is the 23.0.7,google instructions on the corresponding Android SDK r24.1.2, so to download the corresponding version:
Http://tools.android-studio.org/index.php/sdk
Installer_r24.1.2-windows.exe/android-sdk_r24.1.2-windows.zip
The default installation directory C:\Documents and Settings\Administrator\Local Settings\Application Data\android\android-sdk,
For convenience, I install it to E:\ANDROID\ANDROID-SDK, after installation, open eclipse→preferences→ Select android→ Input in the list on the left or browse to select SDK location:e:\android\ ANDROID-SDK, apply and determine.
4. Download ADT, the latest version is ADT-23.0.7
On the http://www.androiddevtools.cn/Site page, search for ADT Plugin, download Adt-23.0.7.zip to local, then open Eclipse, click Help->install New Software, click Add, click Archive, add the corresponding Adt-23.0.7.zip,ok, and then write a name, such as ADT-23.0.7, and then after the pending analysis, you can see the corresponding: Developer Tools, select Developer Tools, will automatically download several dependent files from Google website, then next, then continue next, click Accept agreement and complete, there will be security prompts, click OK, after installation, will require you to restart Eclipse: complete the reboot.
5. Install the rest of the content with the Android SDK manager.
After restarting Eclipse, window→perspective→customize perspective→action set availability→ hooks up on the Android SDK and AVD manager and confirms that The Android SDK Manager can then be found in window and needs to be installed as follows:
Platform tools,build Tools, choose a Platform
Above these can use manager in thread, before using manager please refer to http://www.androiddevtools.cn/, if download speed slow, can use CAS Open Source Association Mirror Station address of the agent download, set as follows:
Launch Android SDK Manager, open the main interface, select "Tools", then "Options ..." and pop up the "Android SDK manager-settings" window;
In the "Android SDK manager-settings" window, fill in the "HTTP proxy server" and "HTTP Proxy port" input boxes with the above mirror server addresses (which do not contain HTTP.//, such as) and ports, and select "Force https://. Sources to be fetched using http://... check box. When the settings are complete, click
Select "Packages", "Reload" in turn.
ipv4/ipv6:mirrors.opencas.cn Port: 80
ipv4/ipv6:mirrors.opencas.org Port: 80
ipv4/ipv6:mirrors.opencas.ac.cn Port: 80
The "Close" button closes the "Android SDK manager-settings" window and returns to the main interface;
6, install the Chinese plugin.
If you are not accustomed to the English version of the development environment, you can download the Chinese plugin. The installation method is like ADT, where name can be filled in at random, location is Http://archive.eclipse.org/technology/babel/update-site/R0.9.1/indigo, In the list of loads, select Babel Language Pack for Eclipse in Chinese (Simplified), install after installation, and Eclipse will restart.

"Method Three": jdk+ Integrated SDK tools Andriod Studio
1. Download and install the JDK, and set the environment variables.
2. Download Andriod studio,android Studio Chinese community with integrated SDK tools
Http://www.android-studio.org/index.php/download
Android-studio-bundle-143.2739321-windows.exe
Includes Android SDK (recommended) 1166 MB
(1223633080 bytes) c556debf40
After downloading, install the Andriod SDK and Andriod Studio, you may need to update some components after installation, Https://dl.google.com/android/repository/android_m2repository_r30.zip.
Be careful not to download Andriod Studio's Chinese package, otherwise there will be an exception.
Android Studio indexing very card, this is a plugin, Google app indexing, in setting search for it, close on OK. I was verified in Android Studio 2.0.

Android Development Platform Setup

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.