Today, I read about Android programming and thought it was very troublesome. But after a careful look, it was all about Java. After so many years of development, it was just a piece of cake for me, it is extremely simple. Next we will build the android environment step by step.
Install JDK first. Go to the official website.
And set java_home. There is nothing to say about the basics.
Download eclipse and decompress it to your local device.
Decompress the plug-in. You can install the plug-in online or directly paste the plug-in into the eclipse directory, or use the plug-in. In short, you can choose a method that you are familiar.
Online update address is https://dl-ssl.google.com/android/eclipse/
Update process
Download Android SDK, Baidu, a lot
Decompress the package
After decompression, the directory structure is as follows:
Here are some tools used for Android development. The following describes how to set environment variables. The settings can be modified based on the actual situation of your machine.
After the configuration is complete, open CMD and test whether the configuration is successful by entering android.
Then configure the eclipse Environment
Open eclipse and choose windows> perferences.
Create an AVD test environment
Create an sdcard simulation card, open cmd, and enter mksdcard 1024 m c: \ sdcard. IMG. The last two parameters are size and the other is file location.
Click the cell phone in the upper left corner, black. The following page is displayed:
Enter the name and select the Android version to use. Find the location of the created sdcard file.
Click Create
Select the android project for the new project.
Enter the project name, package name, and other information.
Click Finish. Right-click the project and choose run> RUN configuration.
Select target, select the created AVD, and click Run. After a while, a friendly welcome page appears.
Now, we can start a pleasant Android journey !!!