Skip to content

Cordova 11 Broken removes res files and google-services.json #154

@jonathanalberghini

Description

@jonathanalberghini

For some reason I run

  1. yarn install
    2 cordova prepare

All of the Res files from the config.XML are present and the google-services.json
then I do a
yarn build:browser && yarn build:ios && yarn build:android
which is
"build:android": "cross-env CORDOVA_PLATFORM=android vue-cli-service cordova-build-android",
"build:browser": "cross-env CORDOVA_PLATFORM=browser vue-cli-service cordova-build-browser",
"build:ios": "cross-env CORDOVA_PLATFORM=ios vue-cli-service cordova-build-ios",

"build:android": "cross-env CORDOVA_PLATFORM=android vue-cli-service cordova-build-android",
In this command somewhere it does a clean and it ends up removing those files.
and I get the error missing colors.xml and it gives a path but it was there for some reason I don't know why it is cleaning them out.
All I have to do is change one line and it will build perfect.
"dependencies": {
"cordova-android": "11.0.0",
to "dependencies": {
"cordova-android": "10.1.2",
here is the package.json
package.json.txt

Does anyone have any input on why this is broken?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions