Set up the Android development environment in OS X, osandroid
Prepare tools
Java 1.6 For Mac OS X-running Eclipse on Mac reminds you of the need to support libraries during Java 6 Runtime
Java 1.8 For Mac OS X-jdk used For development
Eclipse-the version used for development is Eclipse Luna Release (4.4.0)
Android Development Tools (ADT)-Android Development tool plug-in
Android SDK-required...
ADT Installation Method
Installing other tools is a simple installation. There are multiple ways to install ADT:
First:
1. Open Eclipse-Hlpe-Install New Software...
2. Enter the https://dl-ssl.google.com/android/eclipse/ press enter in the Work with item
3. Wait until Pending is complete. Check the Development Tools and click Next.
Second (the first type of network is not good, it is a test of patience, and the second type is manual installation ):
1. Search for the ADT installation package using the search engine. You can go to this URL to see the deployment.
2. decompress the package to the dropins folder under the Eclipse directory and restart Eclipse.
Third:
1. Use search engine to find the ADT installation package, download and decompress it.
2. Open Eclipse-Hlpe-Install New Software...
3. Click Add-Local...-ADT directory-OK.
4. Wait for the Next step and restart Eclipse.
After the ADT is installed, the Android Application Project cannot be found in File-New of Eclipse, which can be found in Other. To directly display the Android Application Project in File-New, you can also use the following methods:
1. A new Android project is created successfully.
2. Open the menu Window-New Window, and a New Window appears. Now, check whether there is an Android Application Project in the File-New menu. After restarting Eclipse, it will still exist.
Configure the Android SDK
1, download Android SDK, you can go to the official website to download (the official website to open the speed is very slow), you can also go to the http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.html
2. decompress the downloaded Android SDK, open the Eclipse-Preferences dialog box, find the Android SDK, Click Browse, and select the SDK directory.
Figure 1 Android SDK directory Selection
3. After the Android SDK directory is configured, you can use Android SDK Manager to manage various versions of sdks and Tools.
Figure 2 Android SDK Manager
4. After the SDK is installed, you should configure the Android Virtual Machine. Without the Android virtual machine, you cannot debug the program.
Figure 3 Android Virtual Device Manager
Summary
To build an Android development environment, you also need to configure environment variables in Windows. This operation is not required in OS X. The installation methods are similar. Due to system differences, various problems may occur during the setup process. Don't worry, be patient, and believe that the search engine is powerful.
Build an Android Development Environment
2. Configure ADT (Figure 3.1 to figure 3.10)
Android project development can be performed only when the ADT plug-in and Android SDK are configured.
ADT Configuration:
Step 1: Open eclipse, double-click eclipse.exe, and click OK, as shown in Figure 3.1 to Figure 3.4;
Step 2: In eclipse, select "help-> Install New Software"-> click "add"-> select “archive..htm, select the adt-0.9.1.zip file, and click "OK"-> select "Developer Tools ", click "Next"-> "Finished"-> finish, select the terms of acceptance, and click "Finished" until the process is completed. After completion, eclipse is restarted. Figure 3.5 to figure 3.10;
3. Configure the Android SDK (Figure 3.1 to figure 3.14)
In eclipse, select "Window-> Preferences"-> "Android" in sequence. The Window shown in Figure 3.12 appears, close the warning window-> select the android sdk directory (decompressed by), 3.13, and click OK-> In Figure 3.14, click "Apply" and click "OK ", after the configuration is complete, return to the eclipse initial interface.
I have a document for you.
I have just configured the ADT version. If it is relatively high, you need to obtain an avd.
An error occurred while setting up the eclipse + Android development environment !!
Build an Android Development Environment
1. Download the Android SDK
Code.google.com/android/download.html
This is the official website. after entering the website, follow the process and select an SDK package suitable for your own platform (Windows) to download.
After downloading, decompress the package and you can use it.
To directly use the SDK tool in the DOS console, you can add the SDK directory to the path environment variable in Windows:
Right-click my computer on the desktop and choose Properties> advanced> environment variables ].
Double-click the Path entry in system variables to add the complete Path of the tools directory in the Android SDK here.
2. Download JDK6
Java.sun.com/javase/downloads/index.jsp
Download and install the Java Development Kit. (I have downloaded and installed this file, and jdk is automatically updated every time)
3. Download Eclipse3.4.1
Www.eclipse.org/downloads/
On the "Eclipse Packages" tab, select "Eclipse Classic3.4.1" to download the package. This is the latest version.
For Eclipse, you can directly decompress the package and use it. (I have myeclipse 6.5)
4. Download the Android ADT plug-in of Eclipse
Install the Eclipse plug-in (ADT)
To download and install the ADT plug-in, follow the steps Google provides to developers:
1. Start Eclipse and select "Help"> "Software Updates"> "Find and Insta ll"
2. In the displayed dialog box, select Search for new features to insta ll and click New"
3. Click "New Remote Site"
4. In the result dialog box, enter a name (for example, Android Plugin) for the remote site and enter
This URL serves as its URL:
Dl-ssl.google.com/android/eclipse/
Click OK.
5. Now you should see that the new site is loaded into the search list (and selected) and click "Finish ".
6. In the subsequent search result dialog box, select "Android Plugin"> "Developer Tools" to check
... The remaining full text>