Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading the 3.5.1 cordova files for android when adding the plaform for cordova 3.5.0 #1

Open
surinaidu opened this issue Sep 22, 2014 · 0 comments

Comments

@surinaidu
Copy link

I am developing an app using cordova 3.5.0 by using android-4.4.2 with an api level 19.
It was working fine till morning but suddenly i am getting the following error,
I know that the cordova 3.5.1 got released. I did not update my cordova version also and i have checked the version which is still 3.5.0-0.2.7.

Can any body have any idea regarding this error?

D:\ClonedMobWorkspace\mobiledev>cordova platform add android
Creating android project...

C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:126
                throw e;
                      ^
Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools.
at C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\lib\check_reqs.js:80:29
at _fulfilled (C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:798:54)
at self.promiseDispatch.done (C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:827:30)
at Promise.promise.promiseDispatch (C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:760:13)
at C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:574:44
at flush (C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:419:13)
Error: C:\Users\Admin\.cordova\lib\android\cordova\3.5.1\bin\create.bat: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\Admin\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)

If you see error above somehow it is downloading 3.5.1 when adding the platform even my installed version is 3.5.0-0.2.7. I am not able to add the android platform even I have api level-19 tools.

"These contain only one minor function change, which is related to the recent release of Cordova Android 3.5.1. Before today’s update, when adding the Android platform to a project, by default it would use version 3.5.0 of Cordova Android. In order to get the latest 3.5.1 of Cordova Android, you would need to manually specify the 3.5.1 version number on the platform add command. Today’s update changes the default version of Cordova Android used when adding the Android platform to a project, so that you no longer need to manually specify the 3.5.1 version number to get the 3.5.1 version. You’ll now get 3.5.1 by default.",
The above mentioned description is from "http://cordova.apache.org/", As you said that, it is downloading 3.5.1 cordova android by default when adding the platform and also the same 3.5.1 files are downloading even if my cordova is 3.5.0-0.2.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant