You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I opened this ticket as support previously as support ticked do not have template, this one does, and it was required from me to open it using template so I opened it as a bug.
Problem
Adding platform on cordova stopped working for some reason, tried to update nodeJs and it did not help:
cordova platform add android
Using cordova-fetch for cordova-android@^9.0.0
Failed to fetch platform cordova-android@^9.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: TypeError: Cannot assign to read only property 'valueOf' of object '[object Object]'
What is expected to happen?
Android platform added.
What does actually happen?
Failed to fetch platform.
Information
cordova platform list
Installed platforms:
Available platforms:
android ^9.0.0
browser ^6.0.0
electron ^1.0.0
windows ^7.0.0
Tried with nodejs 12 and 14.
Tried npm cache clean --force
Tried deleting whole solution and reverting from git
Tried npm uninstall -g cordova then install again
Also tried deleting whole solution and pulling it again from git as solution works on different device.
If you need any more information please leave a comment and I will provide.
cordova 10.0.0 and dependancies (cordova-android is 9.0.0)
Windows 10
Android Studio 3.5, all needed SDKs installed
Ionic not used, only ionic wkwebview plugin
npm outdated:
Indeed this was the fix. Issue opened on same day as mine first ticket, and other project(cordova vs cordova-cli), so I did not see solution. Thank you very much on a fix.
Bug Report
Hi,
I opened this ticket as support previously as support ticked do not have template, this one does, and it was required from me to open it using template so I opened it as a bug.
Problem
Adding platform on cordova stopped working for some reason, tried to update nodeJs and it did not help:
What is expected to happen?
Android platform added.
What does actually happen?
Failed to fetch platform.
Information
Tried with nodejs 12 and 14.
Tried npm cache clean --force
Tried deleting whole solution and reverting from git
Tried npm uninstall -g cordova then install again
Also tried deleting whole solution and pulling it again from git as solution works on different device.
If you need any more information please leave a comment and I will provide.
Command or Code
Literary just:
cordova platform add android
Environment, Platform, Device
Windows 10 Laptop
NodeJs 12.20.0
[email protected]
Version information
cordova 10.0.0 and dependancies (cordova-android is 9.0.0)
Windows 10
Android Studio 3.5, all needed SDKs installed
Ionic not used, only ionic wkwebview plugin
npm outdated:
Checklist
The text was updated successfully, but these errors were encountered: