install configure – android sdk, phonegap, genymotion, eclipse plugin – crunchbang 11 / debian wheezy

i use Crunchbang 11 (debian wheezy) 64 bit, Oracle Java JDK

Install libraries for linux 64 bit

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

if use other linux 64 see this link

Install Android SDK

download from http://developer.android.com/sdk/index.html#download

i have installed eclipse, so I choose SDK Tools Only http://dl.google.com/android/android-sdk_r22.3-linux.tgz

download and extract

my extract path is ~/downloads/android-sdk-linux


# move to /usr/lib

sudo mv ~/downloads/android-sdk-linux /usr/lib

# run avd, and update library api

cd /usr/lib/android-sdk-linux/tools

./android

choose api and install (pst… u just need SDK Platform, ARM EABI System Image, Intel X86 Atom System Image, Google APIs)

sdk-install-api

Config Value Android SDK to local environtment


# create  .bash_profile file

cd ~

nano .bash_profile

# fill with value

export PATH=${PATH}:/usr/lib/android-sdk-linux/platform-tools:/usr/lib/android-sdk-linux/tools

# save, and execute

.bash_profile

# test echo PATH variable

echo $PATH$

Install Node.js

(IMHO) you need node.js to install phonegap version 3.3

download node.js from http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz

extract it (~/downloads/node)

cd ~/downloads/node
./configure
make
sudo make install

wait until finish (grab some tea, coffee or sleep)

Install Phonegap & Cordova

when finish install node.js


sudo npm install -g cordova

sudo npm install -g phonegap

Test Phonegap

lets say i have workspace folder for android


$ cd ~/workspace

$ phonegap create hello -n HelloWorld -i com.example.hello

$ cd ~/workspace/hello

$ phonegap -V build android

if you have error check this

Install GenyMotion Emulator

i like genymotion emulator, its fast

first you must install virtualbox

download form https://www.virtualbox.org/wiki/Downloads

for debian distro http://download.virtualbox.org/virtualbox/4.3.6/virtualbox-4.3_4.3.6-91406~Debian~wheezy_amd64.deb

install that deb file

download genymotion emulator (subscribe and see your email)

https://cloud.genymotion.com/page/launchpad/download/

get the bin file


$ cd ~/downloads

$ chmod +x genymotion-2.0.3_x64_debian.bin

$ mv genymotion-2.0.3_x64_debian.bin ~/bin

$ cd ~/bin

$ ./genymotion-2.0.3_x64_debian.bin

config your genymotion


# run genymotion

$ cd ~/bin/genymotion

$ ./genymotion

input your account

genymotion-account

where you want put image virtual (my path is /media/90F635D3F635BA74/vbox-img/GenyMotion)

genymotion-virtualbox

where your sdk location

genymotion-sdk-android

click ok and now add virtual image

genymotion-add-image

you can click play to test😉

Eclipse Install GenyMotion Plugin

open eclipse

Help -> Install New Software

Fill the fields with these items and then validate:

genymotion-plugin

restart eclipse

find button “Genymotion Virtual Device Manager (Ctrl + 6)”

click start to test

genymotion-plugin-eclipse

close the geanymotion AVD manager

and let the genymotion emulator

Test Eclipse – GenyMotion Plugin

open eclipse

set path genymotion folder https://cloud.genymotion.com/static/images/doc/screenshots/genymotion-eclipse-plugin-settings.png

open existing project

File -> New Project -> Android -> Android Project from Existing Code

eclipse-new-project

browse to phonegap project

eclipse-new-existing-code

click run

eclipse-run

then choose genymotion emulator

genymotion-test-avd

test hello world application

phonegap-eclipse-genymotion

Published by

G3n1k

just to remember what i had known :)

2 thoughts on “install configure – android sdk, phonegap, genymotion, eclipse plugin – crunchbang 11 / debian wheezy”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s