Setting Up a Ruboto Development Environment
Clone this wiki locally
You should be familiar with the command line of your system. This tutorial has been tested with the following setups
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:
gem install ruboto
Since version 0.12.0, Ruboto has a "setup" command:
It should download and install the components needed for Android and Ruboto development.
Older guides for setting up the environment are here:
- Environment setup for Ubuntu
- Environment setup for Gentoo
- Environment setup for Windows
- Environment setup for MacOSx
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.