Learning Development android--Development environment debugging

Source: Internet
Author: User

Yesterday we built the Android development environment and downloaded the Android SDK.

After the SDK download is complete, configure the environment variables to configure the Java environment variables.

New, Android_home, path to the Tools folder for the ANDROID-SDK installation path.

Then add the variable in path and write the path to Platform-tools in path.

Click OK and the configuration is complete. Next Test whether the installation is successful!

Windows+r, open Run, CMD Open dos window input adb enter.

If the prompt appears, the installation is successful.

Next, turn on the ADB service, turn on the DOS window, point the path to the Android SDK installation path, and my drive is D. Then enter the ADB start-server.

The failure to start the ADB service may be due to the use of the ADB service port, we simply shut down the occupied port program, and then query the program that occupies the port.

Open the DOS window and enter Netstat-aon|findstr "5037"

Find the application that consumes the port number, then open the Task Manager and find the program.

Task Manager--process, click "View"-"select column", the PID key is selected, we can find the corresponding program.

In the task, find the PID 6708 task, the technology can be.

Then we can start the ADB service.

The successfully appears, which means the ADB service is started.

What we need to do next is create an Android emulator that can be created in eclipse.

First Open eclipse-->window-->android Virtual Device (AVD) Manager.

Then click on Create to build the simulator.

Device: Select one of the devices, Target: Select the version of Android, Cpu/abi Select the processor for the device, then RAM, Internal storeage, SD card These are based on the size of the program being developed.

After completing, click "OK" to save.

Now we can start our own Android development.

And finally, if you open Eclipse and prompt for errors like Device.xml,

At this point, we open the Android SDK installation path, the tools under the Lib is device.xml copy to the above two error folder can be.

Today's configuration information is here, and the first Android program starts tomorrow.

Learning Development android--Development environment debugging

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.