Apr. 18th, 2010

l33tminion: (Skilled)
Mostly for my own reference, here's how to set up the Android SDK with Eclipse on Ubuntu (the documentation has most of this information, but it's rather spread out):
  1. Get Eclipse: sudo aptitude install eclipse
  2. In Eclipse, go to Help > Install New Software. Add the following as software sources:
    • http://download.eclipse.org/tools/gef/updates/releases/ (for the Graphical Editing Framework)
    • http://download.eclipse.org/releases/galileo/ (for all the other dependencies, assuming the version of Eclipse you're using is still Galileo)
    • https://dl-ssl.google.com/android/eclipse/ (for the Android SDK itself)
  3. Choose that last entry, select all of Developer Tools, and click Next. It should find all the dependencies at that point. If it doesn't, close and reopen the Install New Software window and try that again.
  4. Download the Android SDK and unpack it somewhere.
  5. Go to Window > Preferences > Android and point that at the directory you unpacked the SDK in (probably named android-sdk-linux_86, with a tools subdirectory). No targets will show up, but that's okay.
  6. If you have a specific project to work on, go ahead and import that now. It will complain about missing a specific API or SDK version, use that in the next step.
  7. Go to Window > Android SDK and AVD Manager > Available Packages, find the version of Android you want to develop for (probably the lowest version you definitely want your app to work in) or the API version your project wants and select the platform, docs, SDK, and APIs for that.
  8. Go back to Window > Preferences > Android and you should see the relevant installed targets.
  9. Go to Android SDK and AVD Manager > Virtual Divices > New, select the desired target, and create the device.
Man that's complicated. Wish it was just "sudo aptitude install eclipse-android-2.1". (Also note that 127.0.0.1 on the emulator points to the emulator, 10.0.2.2 points to localhost on the enclosing machine.)
Page generated May. 23rd, 2025 07:01 am
Powered by Dreamwidth Studios