-
Notifications
You must be signed in to change notification settings - Fork 1.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
In multi deployment builds, run-android launches the wrong version of the app #611
Comments
Hi @chetstone It is problem of react-native, which ignores
where Based on this I'd suggest you to report this issue in react-native or use these workarounds. |
@matrosov-nikita Thanks very much for the script. I'll give it a try. This issue has been reported on Product Pains and there is a PR pending to fix it. |
Cool, thanks for the links, @chetstone! |
@matrosov-nikita: thanks for your workaround which is still necessary even a year after your suggestion. this issue is still valid and its initial PR pointed out from @chetstone led to a corresponding PR which has been closed misleadingly without merge. At least it has gotten some attention since last week. Unfortunately it seems like a new issue needs to be filed.. a short addition |
You can run your app with the appIdSuffix param
You can find all the available params here: https://github.com/facebook/react-native/blob/master/local-cli/runAndroid/runAndroid.js#L301 |
I'm writing new versions of old apps, and thus I have inherited old app id's. My code have the package My
First the app can be installed with gradlew
The I can start it manually with
This is a bloody hassle. I would rather not have to mess with it like this. |
This is still an issue using android debug with launch.json in vscode. Is there no fix yet or planned? |
This is still an issue. The code in this PR seems to solve it, but in the meantime, I guess the CLI has been moved here and since it fails to find the correct package, I assume the new file has a bug. |
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
I followed the instructions in the README for installing both debug and release builds simultaneously on the same device. It mostly works, but when I build the debug version with
react-native run-android
it installs the debug version on the device but launches the release version when the install is done. Not a serious problem but a minor annoyance to have to launch the debug version by hand. There must be a setting missing in the gradle files.Sometimes, when the release version is already running, run-android will print the following message:
(The more info the faster we will be able to address it!)
The text was updated successfully, but these errors were encountered: