Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docs:android:starting_an_android_project [2011/03/11 21:44] – created billhdocs:android:starting_an_android_project [2012/02/14 20:49] (current) – [Build] billh
Line 5: Line 5:
   * http://developer.android.com/guide/developing/other-ide.html   * http://developer.android.com/guide/developing/other-ide.html
  
-==== Setup ====+===== Setup =====
  
   - obtain the android sdk, install it on your computer   - obtain the android sdk, install it on your computer
Line 20: Line 20:
 </code> </code>
  
-==== Build ====+===== Build =====
  
   - modify source code as desired   - modify source code as desired
Line 26: Line 26:
   - build the app in debug mode: ant debug   - build the app in debug mode: ant debug
     * note that the first attempt of 'ant debug' failed saying the debug certificate was expired; online search said to delete ~/.android/debug.keystore; the build then succeeded     * note that the first attempt of 'ant debug' failed saying the debug certificate was expired; online search said to delete ~/.android/debug.keystore; the build then succeeded
 +    * if you get the error %%taskdef class com.android.ant.SetupTask cannot be found%%, you have probably changed the install location of the android sdk
 +      * update the local.properties file in the root of your project to have the correct path to the android sdk
 +==== R.java ====
 +R.java is necessary for the app to run, and is referenced in some tutorials.  This file may not exist at first, but will be created the first time you build the project.  It may be possible to create the file with the right ant target but I couldn't get it to work with recent sdk's that way.
  
-==== Deployment ====+===== Deployment =====
  
-=== physical device (your actual phone) ===+==== physical device (your actual phone) ====
   - enable usb debugging on your phone   - enable usb debugging on your phone
     * press Menu -> Settings -> Applications     * press Menu -> Settings -> Applications
Line 65: Line 69:
  
  
-=== virtual device ===+==== virtual device ====
  
   - create an android virtual device to test your programs on   - create an android virtual device to test your programs on
Line 75: Line 79:
 adb -s emulator-5554 install /path/to/MyProject/bin/MyProject-debug.apk adb -s emulator-5554 install /path/to/MyProject/bin/MyProject-debug.apk
 </code> </code>
- 
-==== R.java ==== 
-R.java is necessary for the app to run, and is referenced in some tutorials.  This file may not exist at first, but will be created the first time you build the project.  It may be possible to create the file with the right ant target but I couldn't get it to work with recent sdk's that way. 
  
  
  • docs/android/starting_an_android_project.1299905052.txt.gz
  • Last modified: 2011/03/11 21:44
  • (external edit)