AAhad
AAhad

Reputation: 2845

Cordova 3.6.4 - CLI does not add Android platform

I upgraded my Cordova onto the latest v3.6.4 using below command:

npm update -g cordova

Then created a new project and when trying to add Android it shows below message. However it adds other platforms like Blackberry10.

npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 404 https://registry.npmjs.org/cordova-android/3.6.4
Unable to fetch platform android: Error: version not found: 3.6.4 : cordova-android/3.6.4

enter image description here

Upvotes: 0

Views: 2387

Answers (2)

msd
msd

Reputation: 121

use

npm update -g cordova@latest

this installs the correct release versions, 3.6.3, not the 3.7.0 rc which produces this error

Upvotes: 2

Tomas Hromnik
Tomas Hromnik

Reputation: 2200

The same issue as here Cordova Android: "version not found" after update

use Cordova 3.6.3 as a workaround:

cordova platform add [email protected] --usenpm

Upvotes: 0

Related Questions