Joke Collection Website - Public benefit messages - How to develop Android with eclipse

How to develop Android with eclipse

Methods/steps

1

1) First, download the android SDK. Introduce a very simple method to download eclipse together. Enter android SDK in Baidu to enter the search interface. Check the first item.

2) If you already have eclipse, you can directly install the android SDK plug-in in eclipse. The method is to click Help in the menu above and select Install New Software to add SDK. Learn how to add android SDk to eclipse.

2

After entering the download interface, select the SDK suitable for your computer to download. What I downloaded here is an android development tool, which is very simple and practical. We don't need to download eclipse again. In this download package, we will bring an eclipse FOR android development tool in which we can develop android directly.

three

Decompress after downloading. After decompression, we enter the folder named eclipse. Click the eclipse application and run it. Running as shown in the figure is different from eclipse, because it is an android development tool, which is only suitable for developing android. There are good plug-ins that have been provided to us, and there is no need to install them.

four

After entering the eclipse interface, start creating new android projects. Enter a name for the new project. If there are no special requirements, please click Next until you are finished. The initial configuration is just a general framework structure, which we can modify later. The most important thing is to write code.

five

After all the configuration is completed, you can start the development of android. As shown in the figure:

When developing android, it is recommended not to drag and drop controls and write code directly.

end

Java environment variable configuration

1

By the way, here is the configuration of java environment variables.

1) first open the interface of the environment variable and add a value of JAVA_HOME. Right-click computer properties, and there are advanced settings on the left. After entering, you will see the environment variable option.

2) Create java_home in the system variable and put the path of your java SDK in it.

2

Establish a classpath. Similarly, create a new classpath in the system variable and enter it below. Yes, you do not need to enter other values.

three

Run cmd to test. Press win+R to open the command panel, enter cmd, enter java -version and press enter, then enter javac and press enter to see if the result is the same as the following figure.

It should be noted that there is a space after java in java -version.

/article/EAE 07827 e 057 ff 1 fed 548552 . html