Advertisement
badlogic

cordova install android sdk

Nov 30th, 2016
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. install android sdk for linux cordova
  2. https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
  3.  
  4. # install openjdk
  5. sudo apt-get install openjdk-7-jdk
  6.  
  7. # download android sdk
  8. wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
  9.  
  10. tar -xvf android-sdk_r24.2-linux.tgz
  11. cd android-sdk-linux/tools
  12.  
  13. # install all sdk packages
  14. ./android update sdk --no-ui
  15.  
  16. # set path
  17. export ANDROID_HOME=~/android-sdk-linux
  18.  
  19.  
  20.  
  21. //to build an app
  22. cordova build android
  23.  
  24.  
  25. //to run an emulator
  26. cordova run android
  27.  
  28. //to run on android device
  29. cordova run android --device
  30.  
  31. ********************************************
  32. Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
  33. //if my error dahil sa laki ng pag load the page
  34. //http://stackoverflow.com/questions/12319809/application-error-the-connection-to-the-server-was-unsuccessful-file-andr
  35. In your config.xml file add this line:
  36.  
  37. <preference name="loadUrlTimeoutValue" value="700000" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement