« Getting started with ODK - Build a Survey | Main | Mobile Device Management »

June 28, 2013

Getting started with ODK - Install Android Emulator

Following this tutorial

Make sure you have all the Java requirements:
$ sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin

Download the SDK tools (not the ADT bundle)
http://developer.android.com/sdk/index.html


Unpack the tar ball
$ cd ~/
$ sudo tar -xzf Downloads/android-sdk_r22.0.1-linux.tgz

Fix permissions (?)
$ sudo chown -R mobile1:mobile1 android-sdk-linux/

Run Installer
$ cd android-sdk-linux/tools
$ ./android

Error: Missing platform-tools (uhoh?)


Install updates whenever prompted

Edit bashrc
$ cd ~/
$ sudo nano .bashrc

Add this to bottom:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools

Reload bashrc
$ source ~/.bashrc

Open the emulator
$ android avd

And create a new phone. Promptly get errors

Starting emulator for AVD 'mobile1' Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory

Fix error:
$ sudo apt-get install libgl1-mesa-dev

Posted by kkwaiser at June 28, 2013 12:25 PM

Comments

Login to leave a comment. Create a new account.