Hi !
I recently started to work again on a project that was previously on SDK 46.
Following the end of support for this version, I followed the steps on the blog post and updated to SDK 49.
My app was running just as previously using expo start
however I now encounter an error when I want to build my app with EAS. Whether it is in APK or AAB format, the app crashes instantly on launch with the following trace:
EmbeddedManifest: Could not read embedded manifest
EmbeddedManifest: java.lang.NullPointerException
EmbeddedManifest: at expo.modules.updates.manifest.BareUpdateManifest$Companion.fromBareManifest(BareUpdateManifest.kt:97)
EmbeddedManifest: at expo.modules.updates.manifest.ManifestFactory.getEmbeddedManifest(ManifestFactory.kt:36)
EmbeddedManifest: at expo.modules.updates.manifest.EmbeddedManifest.get(EmbeddedManifest.kt:30)
EmbeddedManifest: at expo.modules.updates.launcher.NoDatabaseLauncher.<init>(NoDatabaseLauncher.kt:70)
EmbeddedManifest: at expo.modules.updates.launcher.NoDatabaseLauncher.<init>(NoDatabaseLauncher.kt:23)
EmbeddedManifest: at expo.modules.updates.UpdatesController.start(UpdatesController.kt:243)
EmbeddedManifest: at expo.modules.updates.UpdatesController$Companion.initialize(UpdatesController.kt:603)
EmbeddedManifest: at expo.modules.updates.UpdatesPackage$createReactNativeHostHandlers$handler$1.onWillCreateReactInstanceManager(UpdatesPackage.kt:56)
EmbeddedManifest: at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:27)
EmbeddedManifest: at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
EmbeddedManifest: at com.dooboo.app.dev.MainApplication.onCreate(MainApplication.java:71)
EmbeddedManifest: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202)
EmbeddedManifest: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7588)
EmbeddedManifest: at android.app.ActivityThread.access$2600(ActivityThread.java:260)
EmbeddedManifest: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2435)
EmbeddedManifest: at android.os.Handler.dispatchMessage(Handler.java:110)
EmbeddedManifest: at android.os.Looper.loop(Looper.java:219)
EmbeddedManifest: at android.app.ActivityThread.main(ActivityThread.java:8668)
EmbeddedManifest: at java.lang.reflect.Method.invoke(Native Method)
EmbeddedManifest: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
EmbeddedManifest: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)07-15 11:27:11.637 25728 25728 D AndroidRuntime: Shutting down VM
followed by:
AndroidRuntime: java.lang.AssertionError: The embedded manifest is invalid or could not be read. Make sure you have configured expo-updates correctly in android/app/build.gradle. null
AndroidRuntime: at expo.modules.updates.manifest.EmbeddedManifest.get(EmbeddedManifest.kt:34)
AndroidRuntime: at expo.modules.updates.launcher.NoDatabaseLauncher.<init>(NoDatabaseLauncher.kt:70)
AndroidRuntime: at expo.modules.updates.launcher.NoDatabaseLauncher.<init>(NoDatabaseLauncher.kt:23)
AndroidRuntime: at expo.modules.updates.UpdatesController.start(UpdatesController.kt:243)
AndroidRuntime: at expo.modules.updates.UpdatesController$Companion.initialize(UpdatesController.kt:603)
AndroidRuntime: at expo.modules.updates.UpdatesPackage$createReactNativeHostHandlers$handler$1.onWillCreateReactInstanceManager(UpdatesPackage.kt:56)
AndroidRuntime: at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:27)
AndroidRuntime: at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
AndroidRuntime: at com.dooboo.app.dev.MainApplication.onCreate(MainApplication.java:71)
AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202)
AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7588)
AndroidRuntime: at android.app.ActivityThread.access$2600(ActivityThread.java:260)
AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2435)
AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
AndroidRuntime: at android.os.Looper.loop(Looper.java:219)
AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8668)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)07-15 11:27:11.639 1633 4448 W ActivityTaskManager: finishTopCrashedActivityLocked Force finishing activity com.dooboo.app.dev/.MainActivity
I use a Managed workflow but I do have /android and /ios folders in my workspace after running expo prebuild
. I haven’t edited anything in these folders.
I tried resolving dependencies with expo upgrade
as well as expo-doctor
but I still have no idea what is causing the problem. Any clue is welcome!
Please let me know if you need more details.