简体   繁体   中英

When I run my React Native app in my device without connecting on the pc via cable, it show the app state 2 month ago

It still happening since 2 month ago. When I execute "react-native run-android" it load the newest app, what I have changed on code. But since I disconnect the cable of the device and I try to open the application is shown the application since 2 month ago more or less.(I am debugging directly with my phone) I don't know why it happens. I have thought could be something about the cache but it hide of my knowledge. I tried to uninstall the application and open the project with Android Studio and play it (it suppose that it install the app forever in the device, or at least is what I was think) and while the cable is connected to my device, nothing weird happened, just the newest state of my app is played as it should be. But again, with the application installed in my phone by Android Studio, when i disconnect the cable of my phone and rerun the app, loads the older app. I am becoming crazy, I need help for this weird problem. Thanks!! Note: In iPhone does not happen , but i was happen the first times when the error appeared the first time in the iPhone emulator. Additional information:React-Native version: 0.49.3

I faced the same issue before, here is some advices to get rid of it

  • uninstall the app before re-install

  • make sure to uninstall for all users if you have multiple accounts on your device (Android) Settings -> Apps -> {your app} -> more -> uninstall for all users

  • uncheck Automatic restore (Android) Settings -> Backup & reset -> Automatic restore

从android设备上卸载较旧的应用程序,然后再次重新安装并进行检查。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM