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. #5646

Closed
aliza-khu opened this issue Mar 27, 2023 · 3 comments · Fixed by #5862
Closed

Comments

@aliza-khu
Copy link

aliza-khu commented Mar 27, 2023

How frequently does the bug occur?

Always

Description

I am expecting that after the upgrade react-native version to 0.71.4, the release build should succeed without any failure. But actually, the build is getting failed with the below error:

package="io.realm.react" found in source AndroidManifest.xml: /home/circleci/react-native/node_modules/realm/react-native/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.

Stacktrace & log output

package="io.realm.react" found in source AndroidManifest.xml: /home/circleci/react-native/node_modules/realm/react-native/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.

Can you reproduce the bug?

Always

Reproduction Steps

Try to create the release build APK with react-native 0.71.4.

Version

11.4.0

What services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

Android OS - API Level 33

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

@kneth
Copy link
Member

kneth commented Mar 28, 2023

@aliza-khu Thank you for reporting. As you can reproduce it, can you provide a small app as an example?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Mar 28, 2023
@aliza-khu
Copy link
Author

aliza-khu commented Mar 28, 2023

@kneth, Actually when I deep debug I found that the release build failure happening was not due to the issue I mentioned. It was a different one but yes I am still seeing the above issue's content on the release build logs. I believe this is due to react native version 0.71.4 changes in which the AndroidManifest.xml will no more mention the package name instead of that in the file android/app/build.gradle need to mention the namespace which should be the same as applicationID. By doing so the warning will get disappears from the release build log. Currently, I am ignoring it because I am not able to change the library's internal code. But I suggest you make this be resolved to avoid a further large incident.

Thank You 🙂

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 28, 2023
@takameyer
Copy link
Contributor

@aliza-khu I was able to see this as well and created a fix. Thanks for creating the issue!

@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Jun 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants