Android entry (1) Installation and hello World

Source: Internet
Author: User

Android entry (1) Installation and hello World

1. Download and install JDK + eclipse + ADT + android_sdk, see the http://developer.android.com/sdk/index.html
2. Compile helloworld, refer to http://developer.android.com/resources/tutorials/hello-world.html
Note that if an error occurs during compilation,

Android emulator is not starting showing "invalid command-line parameter"
Http://stackoverflow.com/questions/6638713/android-emulator-is-not-starting-showing-invalid-command-line-parameter
Http://stackoverflow.com/questions/6629273/android-emulator-invalid-command-line-parameter

---- Q1 -----

-Download Android SDK
-Run AVD Manager
Install a platform
Create an AVD
Create a new Android Project
-Install ADT (http://developer.android.com/sdk/eclipse-adt.html#installing)
Help> install new software ....
Https://dl-ssl.google.com/android/eclipse/
Locking ing the ADT plugin
Window> preferences...
Select android from the left panel.
For the SDK location in the main panel, Click Browse... and locate your

Downloaded SDK directory.
Click Apply, then OK.

---- Q2 -----
[12:58:12-emulator] Panic: cocould not open: C: \ Documents ents and

Settings \ Administrator \. Android/AVD/avd231.ini

Http://code.google.com/p/android/issues/detail? Id = 19084
As a work-around, you can define the environment variable android_sdk_home

Point to the directory containing your. Android directory. The emulator and SDK

Manager will pick it up properly.

Will look into this. There is likely a difference between the way the SDK manager and

Emulator pick up the user's directory when this variable is not defined.

Set android_sdk_home = E:
Start G: \ soft \ eclipse-java-indigo-win32 \ eclipse \ eclipse.exe

---- Q3 -----
The ADB tool has moved to platform-tools/

If you don't see this directory in your SDK,
Launch the SDK and AVD Manager (execute the android tool)
And install "android SDK

Platform-Tools"

Please also update your path environment variable
Include

Platform-tools/directory, so you can
Execute ADB from any location.

ADB uninstall com. example. Android. APIs

Note: Before run the command, pls run the AVD first

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.