My expo app works fine with "expo start" in a real android device, but when the apk generated with "expo build:android -t apk" is installed in the android real device, the app crashes and output this error:
java.lang.RuntimeException: Expo encountered a fatal error: ReferenceError: ReferenceError: Can't find variable: AbortController
This error is located at: in n in p in RCTView in u in RCTView in u in n in o in E in RCTView in n in RCTView in u in PanGestureHandler in n in L in RCTView i at host.exp.exponent.experience.a$2.run(BaseExperienceActivity.java:197) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Please help me!