Vulisha opened a new issue #1133:
URL: https://github.com/apache/cordova-android/issues/1133
# 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:
```
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
### 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:
```
Package Current Wanted Latest
cordova-plugin-androidx-adapter 1.1.1 1.1.3 1.1.3
cordova-plugin-crypto-file 1.4.0 git git
cordova-plugin-firebase-analytics 4.5.0 4.5.0 5.0.0
cordova-plugin-iroot 2.1.0 git git
cordova-plugin-sslcertificatechecker 5.1.0 git git
cordova-plugin-statusbar 3.0.0-dev git git
cpy 7.3.0 7.3.0 8.1.1
cpy-cli 2.0.0 2.0.0 3.1.1
dom7 2.1.3 2.1.5 3.0.0
eslint 6.8.0 6.8.0 7.14.0
eslint-plugin-html 6.0.0 6.1.1 6.1.1
framework7 4.5.2 4.5.2 5.7.14
framework7-icons 2.3.1 2.3.1 3.0.1
http-server 0.11.1 0.11.1 0.12.3
```
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]