android入門(1)安裝及hello world

來源:互聯網
上載者:User

android入門(1)安裝及hello world

1. 下載安裝jdk+eclipse+adt+android_sdk, 參考http://developer.android.com/sdk/index.html
2。編寫helloworld,參考http://developer.android.com/resources/tutorials/hello-world.html
注意一點,如果編譯時間出錯,

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
- 安裝adt(http://developer.android.com/sdk/eclipse-adt.html#installing)
    Help > Install New Software....
    https://dl-ssl.google.com/android/eclipse/
Configuring 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-----
[2012-03-04 12:58:12 - Emulator] PANIC: Could not open: C:\Documents 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 to

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 to
include the

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.