question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SDK 45 Android App Crashing on Bundle Load

See original GitHub issue

Summary

I am upgrading my project to Expo SDK 45 beta v9 and have gotten things working on iOS. However, for Android, my app is able to build but when the bundle loads in the installed development client the app crashes. When attaching to the Android Studio debugger, nothing seems to be caught or captured. In Flipper, there are a bunch of mysterious errors and logs (see here https://cdn.discordapp.com/attachments/695411232856997971/971463342390648912/unknown.png)

The project is bare, but ios and android directories are generated via Expo w/ one minor config plugin.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

45

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.2 - ~/Library/Caches/fnm_multishells/72659_1651686938759/bin/node Yarn: 3.0.1 - /opt/homebrew/bin/yarn npm: 7.18.1 - ~/Library/Caches/fnm_multishells/72659_1651686938759/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 28, 30, 31 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0 System Images: android-31 | Google APIs ARM 64 v8a IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7935034 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.3 Expo Workflow: bare

Reproducible demo

https://github.com/Braden1996/expo-45-issue

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:24 (15 by maintainers)

github_iconTop GitHub Comments

5reactions
Braden1996commented, May 10, 2022

@Braden1996 are you able to confirm that your issue is solved via expo@45.0.1 and expo-dev-client@0.9.5? thanks!

@ajsmth I’ve installed those updates and the issue seems resolved! Thanks 😃

2reactions
BrodaNoelcommented, Jun 24, 2022

Solved? So you may need to update https://blog.expo.dev/expo-sdk-45-f4e332954a68 (Known regressions title)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android App crashes on launch after downloading from ...
Run the following command in the react native directory of your project and then build your app after that: react-native bundle --platform ...
Read more >
Detect and diagnose crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... a native iOS build, it means Metro bundler failed to...
Read more >
App crashing on initial load | Apple Developer Forums
My iOS app is crashing on the initial load. It's happening both in my Testflight build and also in the production version of...
Read more >
Android App suddenly crashes when compiling in Release ...
You need to add a proguard.cfg to your app. Make sure in Properties of the proguard.cfg file that you set Build Action to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found