How to add Android to Phonegap Platforms version 3

感情迁移 提交于 2019-12-03 07:11:50

For some reason, you can't add platforms in an obvious way so i found this:

You need to add platform to work with, whilst the documentation is so very very poor:

Command

   phonegap build android

build

C:\var\www\sexdiaries.co.uk\sexdiaries>phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
 [warning] missing library cordova/android/3.0.0
[phonegap] downloading https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=snapshot;h=3.0.0;sf=tgz...
[phonegap] compiling Android...
[phonegap] successfully compiled Android app

Then you are good to go, doing an import with Andriod Studio will also work now as you have a project to work with :)

Fantastic.

Paulo Cella

your command is like this "phonegap platform add andriod"

But it is android, not andriod

you need to change andriod to android.

For anyone else still having problems, I found that using the run command works as well.

Actually you might have them ready and working but on windows there is an ACSII bug... instead of showing ✔ and ✖ it shows ?.

http://www.raymondcamden.com/index.cfm/2013/8/15/Using-the-PhoneGap-CLI-on-Windows-Watch-out-for-this-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!