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

Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated. #622

Open
sonodima opened this issue Jul 9, 2024 · 2 comments

Comments

@sonodima
Copy link

sonodima commented Jul 9, 2024

Starting from version 8, Gradle requires the namespace to be specified in the build.gradle file, and not AndroidManifest.xml.

Here is a build I have done using Gradle 8.1.1:

> Task :react-native-community_blur:processDebugManifest FAILED


1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-community_blur:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /redacted/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /redacted/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
@Kxkee
Copy link

Kxkee commented Jul 11, 2024

got the same problem, any update ?

@sonodima
Copy link
Author

Unfortunately not yet, I postponed the Gradle 8 update for now.

Tbh the fix would be very simple. If the author won't work on it, I'll see if I can create a MR once I can dedicate it some time :/

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