简体   繁体   中英

React-Native build App on Emulator works - real device not

If I build my App it works on my Android Emulator. If I use my real android device ( Samsung Galaxy S7 Edge) it also build, but uses an old version of my app. On the Emulator the newest version is always deployed. Do you know why? I don't get an error or sth. I want a debug apk.

I already tried to unistall the old version. I already tried to ./gradlew assembleDebug

Thank you for your help

If you are executing the debug version on your device (not bundling for release) then that is expected.

You need to "shake" your device in order to enter the RN dev menu and choose refresh. That should trigger the on demand bundling again.

If this is not the case, then please post your errors, code, logs, etc.

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