1-Install common tools
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo apt-get install git
download and install ant
2-install the Android SDK
3-Install PhoneGap (adobe) & cordova
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
sudo npm install -g phonegap
sudo npm install -g cordova
4-Start emulator & create an example
emulator -avd NexusOneAPI17
phonegap create hellophonegap com.example.phonegap.first HelloPhonegap
cd hellophonegap
phonegap build android
phonegap run android
Import your project into Android Studio
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo apt-get install git
download and install ant
2-install the Android SDK
3-Install PhoneGap (adobe) & cordova
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
sudo npm install -g phonegap
sudo npm install -g cordova
4-Start emulator & create an example
emulator -avd NexusOneAPI17
phonegap create hellophonegap com.example.phonegap.first HelloPhonegap
cd hellophonegap
phonegap build android
phonegap run android
Import your project into Android Studio
- Open Android Studio and Choose “Import Project…”
- Navigate to the “platforms/android” directory within your project path.
Reference: HOW TO INSTALL/RUN PHONEGAP ON UBUNTU
0 comments:
Post a Comment