Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install android sdk for linux cordova
- https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
- # install openjdk
- sudo apt-get install openjdk-7-jdk
- # download android sdk
- wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
- tar -xvf android-sdk_r24.2-linux.tgz
- cd android-sdk-linux/tools
- # install all sdk packages
- ./android update sdk --no-ui
- # set path
- export ANDROID_HOME=~/android-sdk-linux
- //to build an app
- cordova build android
- //to run an emulator
- cordova run android
- //to run on android device
- cordova run android --device
- ********************************************
- Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
- //if my error dahil sa laki ng pag load the page
- //http://stackoverflow.com/questions/12319809/application-error-the-connection-to-the-server-was-unsuccessful-file-andr
- In your config.xml file add this line:
- <preference name="loadUrlTimeoutValue" value="700000" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement