I want to compile all my apps created by phonegap on my computer, with OS ubuntu server.
To install phonegap, I run these commands:
apt-get install nodejs npm git ant openjdk-7-jre openjdk-7-jdk
ln -s /usr/bin/nodejs /usr/bin/node
npm install -g phonegap
npm update -g
tar -zxvf /home/ufficio/Scrivania/android-sdk_r24.4.1-linux.tgz -C /usr/local/
After I finished the programming of my app, I run this command:
phonegap platform add android
phonegap platform add ios
phonegap platform add wp8
Now, I want to build the app for Android, iOS and Windows Phone 8.1, with the keys I want.
I tried to run this command:
phonegap build android
but the server returned this:
How can I fix this issue for Android, and how I can build the app also for ios and wp8?
You need to install the Android SDK in order to build Android apps. See the docs: Android Platform Guide - Apache Cordova
You won't be able to compile iOS apps unless you use PhoneGap Build or have a Mac. Likewise, you need a Windows installation or PhoneGap Build to compile WP8 apps.
There are these things I don't understand:
platform-toolsdirectories to your PATH";
Unfortunately, I'm not expert with line command, if possible, I want a list of commands I'll execute on my server to be able to build android apps.