I am trying to do Hello World (for Android only) at https://build.phonegap.com/apps/.
I created a directory. Named it www. Added the following index.html. Zipped it. Then uploaded it to https://build.phonegap.com/apps/ hoping to get back an .apk file.
index.html<!doctype html>
<html>
<head>
<title>PG Test</title>
</head>
<body> Hello World </body>
</html>
Instead, all I got was this error message.
ErrorError - Some official plugins have to be updated if using
PhoneGap >= 4.0.0. Please upgrade the version of any
plugins that may include the following file:
FileTransfer.java - You can fix this here.
The "here" link in the above error message takes you here: http://plugins.cordova.io/npm/index.html. Where it says "Page not found."
Please supply the necessary source code for Phone Gap Build to generate an .apk file for Android.
FWIW: you have not mentioned anything about your config.xml
. At this point I am assuming you are using the one you get - without modification.
Okay. I'm going to give you the quick fix. But first you should know you have a large amount of errors. This quick fix will get you going, but you should read the document I've laid out more than once.
Top Mistakes by Developers new to Cordova/Phonegap
QUICK FIX Add this to your config.xml
for PHONEGAP BUILD ONLY
<preference name="phonegap-version" value="3.7.0" />
There are two large reasons you are getting these errors.
From #6 on the link above:
With the CLI version, if you do not assign a version for your platform OR in ''Phonegap Build'' if you do not set the phonegap-version in config.xml, YOU WILL GET THE LATEST VERSION. If you are lucky, your program just works as expected. If you are not lucky, you'll get a set of cascading error.
TO repeat, you are not lucky. You are getting the set of cascading error
You should read #6, #7, #10 & #11.
Best of Luck, let me know how it is going.