Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-file doesn't remove from AndroidManifest.xml added-deleted settings #1633

Open
3 tasks done
diegomesata opened this issue Jul 18, 2023 · 1 comment
Open
3 tasks done

Comments

@diegomesata
Copy link

Bug Report

Problem

If I add a custom setting to the config.xml file using config-file, build, and later I delete it, and build again, the custom setting will remain in the AndroidManifest.xml

What does actually happen?

  1. Add a custom setting to the config.xml file using config-file, by example "testx":
.....
  1. Run cordova build android. The AndroidManifest.xml is modified and the custom setting "testx" is added:
    <manifest ....
  1. Delete the custom setting "testx":
.....
  1. Run cordova build android. The "testx" remains in the AndroidManifest.xml.

<manifest ....

I tried remove it directly from the AndroidManifest.xml but the custom settings appers again on build.

What is expected to happen?

The custom settings should be removed.

<manifest ....

Version information

cordova-lib@12.0.1
node v16.20.0
windows 11

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@diegomesata
Copy link
Author

In order to remove the setting I had to delete the android build folder, in the .grade folder the cache folder, the android.json file and remove the setting in the AndroidManifest.xml, and build it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant