Usefull links:
- http://duemafoss.blogspot.fr/2014/02/getting-started-with-apache-cordova.html
- http://www.gb-prod.fr/2014/02/03/mettre-en-place-un-environnement-de-developpement-cordova-android-sur-fedora/
Download SDK from Google SDK download page
$ sudo dnf install ant glibc glibc-devel libstdc++ zlib-devel ncurses-devel libX11-devel libXrender libXrandr mesa-libGL-devel
$ sudo tar xf android-sdk-linux.tgz -C /usr/local/share
$ sudo chmod -R 777 /usr/local/share/android-sdk-linux
Edit ~/.bashrc
and add this line:
export PATH=$PATH:/usr/local/share/android-sdk-linux/tools:/usr/local/share/android-sdk-linux/platform-tools
Finaly just execute:
$ android
$ npm install cordova ripple -g
$ cordova platform add android
$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
$ cordova build android
$ ripple emulate --path ./
$ cordova run android
$ cordova emulate android
- Connect the device via USB and make sure debugging is working.
adb tcpip 5555
- Find IP with
Connect the device via USB and make sure debugging is working.
adb connect 192.168.0.8:5555
- Disconnect USB and proceed with wireless debugging.
adb -s 192.168.0.8:5555 usb
to switch back when done.
android update sdk --no-ui --filter build-tools-24.0.0,android-24,extra-android-m2repository