How to Set up Android Developer Environment?

Ingredients

Official Installation guide
SystemRequirements

  1. Java SE Development Kit(If you don't have this, Android SDK Installer will automatically introduce you how to get Java SE)
  2. Eclipse Classic (Recomended)or IDE for Java Developers or IDE for Java EE Developers
  3. Android SDK
  4. ADT Plugin for Eclipse…ADT is short for Android Development Tools. 1. Eclipse Menu Help > Install New Software(Input "http://dl-ssl.google.com/android/eclipse/")..or,2.from this page,get ADT-.zip,and locally intall.form (Help->Install New Software) choose Archive,and give local file ADT-.zip.
    • Don't forget to check □Developer Tools
instal.png
Connect to Real Device Android

Errors which I encountered

When I opened Android SDK Manager….

the error goes like this↓
error.jpg

contents of message

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Unknown Host dl-ssl.google.com
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: dl-ssl.google.com
Done loading packages.

Solution

Go "Tools" of menu.
Set proxy server and port correctly .
after that,"Packages"->"Reload"

When I downloaded ADT on Eclipse through Internet.

this is caused because, I did it through my company's network system.
error-eclipse.jpg
Some sites could not be found. See the error log for more detail.
HTTP Proxy Authentication Required: http://download.eclipse.org/eclipse/updates/3.7/content.xml
Proxy Authentication Required
HTTP Proxy Authentication Required: http://download.eclipse.org/releases/indigo/content.xml
Proxy Authentication Required

Solution

Set proxy server and port correctly .
All Host and Port of "HTTP","HTTPS","SOCKS"(Window->Preference->Internet(or Network) Connection)
set "Active Provider=Manual"

local installation of ADT
help->new software->add->Archive->and give some ".zip" file.

Eclipse told me that "there is no org.eclise.core.runtime.3.6.0"

more then ADT 17 needs Eclispe Galileo(3.5)
Get most recently updated version of Eclipse.

org.eclipse.wst.sse.core 0.0.0 but it could not be found

error-2.jpg
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)
Missing requirement: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found

this is caused by..

similar error
find software at
http://download.eclipse.org/releases/indigo

WST is short for Web Standared Tool.
I guess I was run out of
WST Server Adapters
But this was not enough,
install all WebStandard Tool.
[http://stackoverflow.com/questions/6482268/eclipse-indigo-cannot-install-android-adt-plugin]

waiting for debug->Force Close and black out.

this is because..

  • other last launched application is running behind.
  • when I am waiting for starting up application,I couldn't wait and touch the screen. or, Device laid on unstable place,and this cause switch landscape to portrate.
  • In the case of NDK. forget ndk-build NDK_DEBUG=TRUE;

Next Step

When you success with set up environment, go to the next step HelloWorld

en.gif en
ja.gif ja


edit
サポートサイト Wikidot.com