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

:country_codes:processDebugManifest failed. #43

Open
gobi-G opened this issue Jul 23, 2024 · 1 comment
Open

:country_codes:processDebugManifest failed. #43

gobi-G opened this issue Jul 23, 2024 · 1 comment

Comments

@gobi-G
Copy link

gobi-G commented Jul 23, 2024

Error Message:

`
Execution failed for task ':country_codes:processDebugManifest'.

A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
com.android.manifmerger.ManifestMerger2$MergeFailureException: Error parsing /Users/gobiganjeyamoorthy/.pub-cache/hosted/pub.dev/country_codes-3.1.0+2/android/src/main/AndroidManifest.xml
`

Steps to Reproduce

  1. Update Gradle to version 8.3.1.
  2. Run the build process for the project.
  3. Observe the error occurring during the :country_codes:processDebugManifest task.

Expected Behavior
The build process should complete successfully without errors.

Observed Behavior
The build fails with the ManifestMerger2$MergeFailureException while parsing the AndroidManifest.xml file for the country_codes package.

Build Environment
Flutter Version: 3.19.6
Dart Version: 3.3.4
Operating System: macOS
Gradle Version: 8.3.1

Android Gradle Plugin Version:

  • Android Studio Iguana | 2023.2.1 Patch 1
  • Build #AI-232.10300.40.2321.11567975, built on March 13, 2024
  • Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • macOS 14.2.1
  • GC: G1 Young Generation, G1 Old Generation
  • Memory: 4096M
  • Cores: 8
  • Metal Rendering is ON
  • Non-Bundled Plugins:
  • Dart (232.10305)
    

Country Codes Package Version: 3.1.0

Steps Taken to Troubleshoot

  1. Checked for syntax errors in the AndroidManifest.xml file.
  2. Ensured all dependencies are up to date.
  3. Cleaned and rebuilt the project.
  4. Verified correct Gradle and Android Gradle Plugin versions.
  5. Attempted to downgrade Gradle and Android Gradle Plugin to previous working versions.

Additional Context
This issue started occurring after updating Gradle to version 8.x.x. It seems to be related to how Gradle handles the AndroidManifest.xml file parsing in this version. Previous Gradle versions did not produce this error.

Possible Solution
Please provide any known solutions or workarounds for resolving the ManifestMerger2$MergeFailureException when processing the AndroidManifest.xml file for the country_codes package, particularly in the context of using Gradle 8.x.x.

@miguelpruivo
Copy link
Owner

Isn't this related with #44 ?

@miguelpruivo miguelpruivo reopened this Aug 25, 2024
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

2 participants