I am trying to get a new build for my android app using EAS Build in Development profile. It build fine but after I install it and run the app. I go to scan the QR or put in my local host and it crashes. I believe it has something to do with react navigation but I can not confirm because I don’t have any error logs to confirm. Is there a way to get why the app keeps crashing?
are you using expo-dev-client?
Yes that is what I am trying to use. If I just build APK it works fine but the over the air updates are nice
I just tried a whole new account and new project with just the base. It appears to be something on my phone. any suggestions on things I can do to fix it.
could you possibly provide a more detailed account of what you are experiencing? i’m still not quite understanding. maybe you could walk through a screen recording
Steps:
I use eas build --profile development --platform android
It builds fine and gives me the QR to Install
I download in chrome and use chrome in my android to install
I then turn on my dev-client with expo start --dev-client
I open the newly installed app, click on the QR to scan the new QR that dev-client gave me and the app just crashes.
I just tried it on two more phones same issue both google pixel 5. Not sure what could be causing it. I even tried it with just a fresh expo init blank project
ah ok! so you are able to launch the downloaded dev client, but when you try to open your project in it then it crashes. you can look at native logs with adb logcat
. you can also try simplifying your app to see if it loads if it’s just “hello world” and then add back more pieces of it until the crash happens again (fyi/manual-debugging.md at main · expo/fyi · GitHub)
So I am not doing any of the steps wrong then because I just did a brand new project I used these steps and I am getting a runtime error of “c.startOperationBatch is not a function.”
Steps Taken:
expo init
npm install -g eas-cli
eas login (logged in my creditials)
eas build:configure
eas build --profile development --platform android
That is all I did. I did not change the code at all.
Build ID
721dc8c7-e09d-4771-babc-5b714b8f482c
I had exactly this experience yesterday with newly created SDK 42 app plus react-native-navigation-bar-color installed. Immediate crash when clicking the “Scan QR Code” button. expo start
needn’t be running. To clarify, the crash happens immediately, before the QR code can even be scanned, (and even if there is no QR code to scan.)
I have since tried logging in and loading the experience by choosing it from the RECENTLY IN DEVELOPMENT list, but that also crashed immediately. i.e. before downloading the bundle.
See the logcat output below.
After upgrading to SDK 43 beta with no other changes it worked. @dwardfarmhand, I suggest you try upgrading.
10-15 17:55:11.490 4183 4299 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
10-15 17:55:11.490 4183 4299 E AndroidRuntime: Process: com.example.navbarcolour, PID: 4183
10-15 17:55:11.490 4183 4299 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: c.startOperationBatch is not a function. (In 'c.startOperationBatch()', 'c.startOperationBatch' is undefined), stack:
10-15 17:55:11.490 4183 4299 E AndroidRuntime: disableQueue@226:592
10-15 17:55:11.490 4183 4299 E AndroidRuntime: unsetWaitingForIdentifier@226:457
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@245:826
10-15 17:55:11.490 4183 4299 E AndroidRuntime: h@248:1507
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@248:1686
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@223:2411
10-15 17:55:11.490 4183 4299 E AndroidRuntime: s@232:1346
10-15 17:55:11.490 4183 4299 E AndroidRuntime: start@232:1397
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@219:2072
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@219:2141
10-15 17:55:11.490 4183 4299 E AndroidRuntime: onPressIn@219:1702
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@215:7927
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@215:7377
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@215:6970
10-15 17:55:11.490 4183 4299 E AndroidRuntime: onResponderGrant@215:4967
10-15 17:55:11.490 4183 4299 E AndroidRuntime: E@94:896
10-15 17:55:11.490 4183 4299 E AndroidRuntime: extractEvents@94:8888
10-15 17:55:11.490 4183 4299 E AndroidRuntime: <unknown>@94:13472
10-15 17:55:11.490 4183 4299 E AndroidRuntime: xe@94:92704
10-15 17:55:11.490 4183 4299 E AndroidRuntime: Re@94:12995
10-15 17:55:11.490 4183 4299 E AndroidRuntime: ze@94:13384
10-15 17:55:11.490 4183 4299 E AndroidRuntime: receiveTouches@94:14177
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@45:3492
10-15 17:55:11.490 4183 4299 E AndroidRuntime: <unknown>@45:747
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@45:2538
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@45:719
10-15 17:55:11.490 4183 4299 E AndroidRuntime: value@-1
10-15 17:55:11.490 4183 4299 E AndroidRuntime:
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:83)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
10-15 17:55:11.490 4183 4299 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)