DiegoMolero opened a new issue, #223: URL: https://github.com/apache/cordova-common/issues/223
# Bug Report ## Problem There might be some broken changes in the new version 5.0.1 `causing cordova platform` add not to work. When running ``` npx cordova platform add android@latest ``` It's throwing this error ``` Using cordova-fetch for cordova-android@13 Adding android project... Could not load API for android project /Users/----/mobile-project/node_modules/cordova-android ``` This is the `package-lock.json` after installing "cordova-android" which will grab the new version 5.0.1. ``` "cordova-android": { "version": "13.0.0", "resolved": "https://registry.npmjs.org/cordova-android/-/cordova-android-13.0.0.tgz", "integrity": "sha512-uQG+cSyrB1NMi2aIzihldIupHB9WGpZVvrMMMAAtnyc6tDlEk7gweSSaFsEONyGAnteRYpIvrzg/YwDW08PcUg==", "dev": true, "requires": { "android-versions": "^2.0.0", "cordova-common": "^5.0.0", "dedent": "^1.5.3", "execa": "^5.1.1", "fast-glob": "^3.3.2", "fs-extra": "^11.2.0", "is-path-inside": "^3.0.3", "nopt": "^7.2.1", "properties-parser": "^0.6.0", "semver": "^7.6.2", "string-argv": "^0.3.1", "untildify": "^4.0.0", "which": "^4.0.0" }, ``` I can confirm the issue get fixed if I change from the `package-lock.json`: ` "cordova-common": "^5.0.0"` to `"cordova-common": "5.0.0"` so I install the version 5.0.0 instead of 5.0.1. ### Environment, Platform, Device Mac M1 chip ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> Node v14.16.0 npm 6.14.11 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [] 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org