-
Notifications
You must be signed in to change notification settings - Fork 888
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
RN CLI relies on deprecated Package attribute in manifest file #1721
Labels
Comments
@thymikee this is sort of critical as it's needed for the CLI version that lands on 0.71 (which contains AGP 7.3) |
@adamTrz can you prioritize that? Looks like we need to update the cli/packages/cli-platform-android/src/config/getAndroidProject.ts Lines 23 to 26 in aed2572
namespace from build.gradle. Since package is now deprecated, let's treat it as a fallback solution and use namespace first
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
Package attribute in manifest file is deprecated on Android Gradle Plugin v7.3+. RN CLI has some kind of a bug that requires that the first folder (sorted alphabetically) in the project which has AndroidManifest.xml file, to have the package attribute. Otherwise, it will throw an error [1]:
error Failed to build the app: No package name found. Found errors in /REDACTED/src/main/AndroidManifest.xml
Error logs:
Reproducible Demo
package
attribute from first alphabetically sorted folder containingAndroidManifest.xml
namespace
declaration on that module'sbuild.gradle
The text was updated successfully, but these errors were encountered: