- Install JDK (not JRE)
- Set the system environment variable: JAVA_HOME
say, C:\Program Files\Java\jdk1.7.0_09 - Set the system environment variable: CLASSPATH
say, %JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar - Append java compiler path to the PATH system environment variable:
say, %JAVA_HOME%\bin - reboot and run javac.exe to verify if the installation is all right
- Set the system environment variable: JAVA_HOME
- Install ADT (Android Developer Tools)
- Download, unzip the ADT Bundle for Windows and you are ready to go!
- Start eclipse: say, C:\adt-bundle-windows\eclipse\eclipse.exe
- Install all other versions of Android APIs
- Start Android SDK Manager: Window>Android SDK Manager
- Check all APIs and Extra to download and install
- Set up an Android emulator (Andrord Virtual Device, AVD for short)
- Windows>Android Virtual Device Manager>New
- Create a new Android Application Project
- The package name must be specified with your unique name: com.your unique name.helloandroid
- Start the application: Debug as > Android Application
- Inconsistent Naming! adt-bundle-{OS} has inconsistent SDK platform location for API 17
The new adt-bundle-windows (and linix) have the API 17 SDK in platforms\android-4.2 instead of platforms\android-17. However, all the other SDK still download in the the named folders “android-“+apiLevel.
- Import existing projects
- File>Import>General>Existing Projects into Workspace
- DO NOT choose: File>Import>Android>Existing Android Code into Workspace
- When editting AndroidManifest.xml
- If error appears: No grammar constraints detected for the document
- Window>Preferences>XML>XML Files>Validations
set No grammar specified to Ignore
- Install Microsoft Visual Studio Team Explorer Everywhere 2010 with SP1
- If you are connecting, with basic authentication, to TFS 2010 which doesn’t support HTTPS, DO NOT upgrade to Team Explorer Everywhere for Microsoft Visual Studio Team Foundation Server 2012 with Update 1
- TFS 2012 requires basic authentication be protected by HTTPS.
- To regenerate the R class
- Android Tools>Fix Project Properties
- Eclipse hanged when starting
- cd to <workspace>\.metadata\.plugins\org.eclipse.core.resources
- remove the file .snap (or .markers in Indigo)
- Android: failed to find style ‘mapviewstyle’ in current theme?
- GO-TO : android-sdk/platforms/ <android-api-level> /data/res/values
- In public.xml, check the mapViewStyle’s definition and id value.
- In styles.xml, insert ‘mapViewStyle’ item element as shown below.
- Reference