Skip to content

Instantly share code, notes, and snippets.

@donigian
Last active December 17, 2015 14:29
Show Gist options
  • Save donigian/5624455 to your computer and use it in GitHub Desktop.
Save donigian/5624455 to your computer and use it in GitHub Desktop.
Here is an example how to build and run ApiDemos sample project.
Go to your SDK folder, then to ../samples/android-#/ApiDemos, where # is API Level.
Start terminal in this folder.
Run android list targets and find target with API Level that is equal or higher then what you've chosen for # on step 1. Lets call this target X. In my case X equals 21. It looks like in your case X equals 1.
Run android update project -p . -n ApiDemos -t X (change X to correct value)
Run ant debug
Run adb install bin/ApiDemos-debug.apk
Setting up a Device for Development
http://developer.android.com/tools/device.html
USB Vendor IDs
http://developer.android.com/tools/device.html#VendorIds
Restart adb by issuing 'adb kill-server' followed by 'adb start-server' at a cmd prompt
Disable and re-enable USB debugging on the phone
Rebooting the phone if it still doesn't work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment