Setting Up a Ruboto Development Environment

Dane Balia edited this page Feb 10, 2015 · 16 revisions
Clone this wiki locally


You should be familiar with the command line of your system. This tutorial has been tested with the following setups

Platform JDK JRuby ruboto ant Device API level Tester
Win XP
OS X 1.6.0_65 1.7.10 1.0.1 1.9.3 emulator android-10 KCE

Install a Ruby implementation

Ruboto works with all major implementations. Take your pick:

You can download Ruby from any of these sources, or you can install them using a Ruby environment manager:

Install ruboto

gem install ruboto

Environment setup

Since version 0.12.0, Ruboto has a "setup" command:

ruboto setup

It should download and install the components needed for Android and Ruboto development.

Older guides for setting up the environment are here:

Generate an AVD

Next you'll want to generate an android virtual device (AVD) unless you want to develop using your phone.

You can create an AVD for API level 10 (which 'ruboto setup' gives you by default) via:

 android -s create avd -f -n Android_4.0.3 -t android-15 --sdcard 64M --abi armeabi-v7a
  • Try match the name, type and ABI's found in 'android list targets' if there are problems

  • You now have a device named Android_4.0.3. It can be run via the emulator command.

  • Start your emulator unless you want to develop using your actual device. (The emulator boot hasn't completed until you see the Android home screen with icons; this might take a couple minutes.)

emulator -avd Android_4.0.3
  • Note to build a device for a higher API you'll need to get the SDK for that platform. The best way to manage which SDK's you have is via the SDK manager.