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

Cannot use plugin in a project using Gradle 8 due to namespace #66

Closed
derTuca opened this issue Feb 28, 2024 · 0 comments · Fixed by #70
Closed

Cannot use plugin in a project using Gradle 8 due to namespace #66

derTuca opened this issue Feb 28, 2024 · 0 comments · Fixed by #70

Comments

@derTuca
Copy link

derTuca commented Feb 28, 2024

The main error is this:

Incorrect package="dev.jerson.fast_rsa" found in source AndroidManifest.xml: /home/alex/.pub-cache/hosted/pub.dev/fast_rsa-3.6.1/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="dev.jerson.fast_rsa" from the source AndroidManifest.xml: /home/alex/.pub-cache/hosted/pub.dev/fast_rsa-3.6.1/android/src/main/AndroidManifest.xml.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fast_rsa:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="dev.jerson.fast_rsa" found in source AndroidManifest.xml: /home/alex/.pub-cache/hosted/pub.dev/fast_rsa-3.6.1/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="dev.jerson.fast_rsa" from the source AndroidManifest.xml: /home/alex/.pub-cache/hosted/pub.dev/fast_rsa-3.6.1/android/src/main/AndroidManifest.xml.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 2s
Error: Gradle task assembleProdDebug failed with exit code 1

The solution would seem to be to add namespace to build.gradle's android section as seen here and removing it from AndroidManifest.

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

Successfully merging a pull request may close this issue.

1 participant