-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Android] react-native run-android: Parsing of AndroidManifest.xml wrong #5546
Comments
Hey fkrauthan, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
A PR is welcome to improve the process. |
I changed the Application ID and not the package name. the result is I can compile and launch the app for android via Android Studio.. but running from the command line results in Error type 3 |
To respect applicationId in android/app/build.gradle then try to start activity by {applicationId}/{originalPackage}.MainActivity
|
I have pushed a PR #8950 to solve this issue. I am using the advice given by @fkrauthan and am reading the package name from the final generated AndroidManifest.xml in the build directory. The real difficulty in the task is to figure out the path for the the generated manifest file as it depends upon the build type, product flavor as well the architecture that the build is run for. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/android-react-native-run-android-parsing-of-androidmanifestxml-wrong Product Pains has been very useful in highlighting the top bugs and feature requests: Also, if this issue is a bug, please consider sending a pull request with a fix. |
Ammm... Isn't it in react-native cli? |
No looks like this issue is still valid. I can't believe that no one accepted the PR that someone already made. |
This thing is still alive? Im experiencing problems with this now, aswell are others: http://stackoverflow.com/questions/41771892/react-native-app-wont-start-when-using-applicationidsuffix Also the productpain page is not working anymore: "Oops! We couldn't find the page you were looking for." |
New product pains link: https://react-native.canny.io/feature-requests/p/android-support-varying-application-ids-for-different-build-variantsflavors ...and it seems like old links redirect correctly now. |
Still having the same issue the app builds and installs but can't be opened on the emulator when running react-native run-android Error type 3 I have a buildType for debug that adds the applicationIdSuffix '.dev' and I'm guessing this is why it can't find the activity to open but I'm not sure how to solve it. I definitely need the two build types |
yep. issue still occurs, and it is annoying. |
There are a ton of additional parameters you can pass in to resolve your issue. For example:
|
I saw that for the command
react-native run-android
you guys are getting the package name of the application out ofapp/src/main/AndroidManifest.xml
. This is ok if you change the application package in the gradle file AND in theAndroidManifest.xml
.A better way would be to look at the final generated
AndroidManifest.xml
in the build directory to find the actual application id to start up the application.The text was updated successfully, but these errors were encountered: