App crashes on startup? Causes and fixes for Flutter and React Native

Short answer
- Most launch crashes come from a short list: a setup call made too early in main(), a missing config file, a missing permission string, or code the release build stripped out.
- The real error is in the native device log: adb logcat on Android, Xcode’s Devices window or the Mac Console app on iPhone.
- Release builds behave differently: Flutter release mode turns off assertions and debugging, and R8 code shrinking is on by default for Flutter Android release builds.
- On iPhone, a crash report with code 0x8badf00d means the watchdog killed the app for being too slow to start.
- Google Play flags apps whose user-perceived crash rate goes above 1.09% overall or 8% on any single phone model.
You tap the icon, the splash screen flashes, and you’re back on the home screen. No error. No red box. Nothing in the terminal.
It’s a maddening bug, because the app dies before your debugging tools get a look in. The good news: launch crashes come from a short list of causes, and each leaves a fingerprint in a log you probably haven’t opened yet.
This guide covers Flutter, React Native, and plain iOS and Android apps, and it hangs off our bigger guide on how to test an app before and after launch. I checked every command and rule below against Apple, Google, Flutter and React Native documentation on 6 December 2026.
Why does an app crash on startup?
An app crashes on startup when something in its launch sequence throws an error nothing catches, or when the operating system kills it for taking too long.
Launch is the busiest second in an app’s life: native libraries, config files, Firebase or payment SDKs, a database, the first screen. If any step fails hard, the process ends.
Android puts it plainly: an app written in Java or Kotlin crashes on an unhandled exception, and one with C or C++ code crashes on an unhandled signal such as SIGSEGV. Google also says null pointer exceptions are the largest cause of crashes on Google Play.
Apple adds a second way to die. iOS runs a watchdog that monitors launch times and terminates apps that block the main thread for a significant time. Apple’s own examples include synchronous network calls and processing large amounts of data, such as big JSON files.
The causes fall into 5 buckets:
- Setup in the wrong order. A plugin or SDK called before the framework is ready.
- Missing configuration. A Firebase file, an API key, a permission string or an environment variable that existed on your machine and not in the build.
- Release-only differences. Code shrinking, different signing, and debug tools switched off.
- Native dependency trouble. A package update that left an iOS framework or Android library out of step.
- Too slow. Heavy work on the main thread before the first frame.
How do you find out why your app crashed?
Read the native device log while you reproduce the crash, because launch crashes rarely reach the Flutter or Metro console.
If the app dies before the framework starts, the only record is in the system log.
| Where the crash happens | Where to look | What to search for |
|---|---|---|
| Android, on your desk | adb logcat with the phone plugged in, or Logcat in Android Studio | FATAL EXCEPTION, then the exception type on the next lines |
| Android, in users’ hands | Android vitals in Play Console (crashes and ANRs) | Your biggest crash cluster and which phone models it hits |
| iPhone, on your desk | Xcode’s Devices and Simulators window, or the Console app on your Mac with the phone selected | Exception type, termination reason, and the top frames of the crashed thread |
| iPhone, TestFlight or App Store | The Crashes organizer in Xcode | Reports grouped by build; TestFlight testers share crash reports automatically |
| iPhone, a user’s own phone | Settings, Analytics and Improvements, Analytics Data, then share the file named after your app | A file starting with your app’s binary name and a date |
| Flutter, any platform | flutter logs while the app runs | Dart errors that happened after the engine started |
| React Native release build | adb logcat -d | npx metro-symbolicate <path to source map> | Your file names and line numbers in place of minified ones |
Sources: Android crash guide, Apple’s guide to acquiring crash reports, Flutter CLI reference, React Native release debugging, all checked 6 December 2026.
2 gotchas. First, Apple says some crash types don’t appear in the Crashes organizer at all, including watchdog events from slow launches and invalid code-signature crashes. You get those from the device itself.
Second, a crash reporting SDK can’t report a crash that happens before the SDK starts. Google’s Android vitals page lists “crashes before SDK initialization” as one reason its numbers differ from tools like Crashlytics. For launch crashes, the stores’ own data often sees more than your SDK does. If you’re choosing a reporting tool, our crash and performance tools directory lists the main options.
Not sure which bucket you’re in? Answer 4 questions and the finder points you at the likely cause and the first thing to try.
Crash cause finder
Why is my app crashing on launch?
4 questions. You get the most likely cause, the first thing to try, and when to get help.
Why does my app work in debug but crash in release?
Because a release build is a different program: it’s compiled differently, shrunk, signed differently and stripped of the tools that were catching your errors in debug.
Flutter’s own build modes page says release mode disables assertions, debugging and service extensions, and strips debugging information. It also says release mode doesn’t run on the iOS simulator or the Android emulator. So if you’ve only ever tested on a simulator, you’ve never actually run your release build.
React Native is the same story. Its debugging docs say the Dev Menu, LogBox and React Native DevTools are disabled in release builds. The error box that saved you in development simply isn’t there.
Then shrinking. On Android, R8 removes code it decides is unreachable and renames what’s left. Google says its full mode makes stricter assumptions about reflection and may need extra keep rules so necessary code isn’t stripped.
The fix is one habit: run a release build on a real phone before every store upload. Here are the commands.
- Flutter: flutter run –release on a plugged-in device.
- React Native on Android: npm run android - –mode=”release” (needs release signing set up first, per the React Native signing guide).
- Expo: npx expo start –no-dev –minify runs your JavaScript in production mode, as described in Expo’s runtime issues guide.
- Native iOS: set the scheme’s build configuration to Release in Xcode, or ship to TestFlight. Our TestFlight guide walks through it.
Why does my Flutter app crash without an error?
Usually because the failure happened in native code, outside Dart, so the Flutter console has nothing to print. Sometimes the app is still open, sitting on a blank grey screen.
Check which one you have. If the app closes, the error is in adb logcat or the iOS device log. If the app stays open on a grey or blank screen in release, Flutter’s error handling docs explain why: when a widget fails to build, debug mode shows a red error message and release mode shows a grey background. Same bug, quieter symptom.
The same page says errors thrown outside a Flutter callback, such as a failed async plugin call, go to PlatformDispatcher.instance.onError, which by default only prints them. On a user’s phone, that print goes unread.
So wire up both handlers before you need them:
- FlutterError.onError for errors during build, layout and paint.
- PlatformDispatcher.instance.onError for everything else.
Point both at a crash reporter, so the next silent failure arrives with a stack trace.
If flutter run itself works but the installed app won’t open, try flutter clean (it deletes the build/ and .dart_tool/ folders), uninstall the app from the phone, and build again. It rules out stale build output.
Why does my Flutter app crash on startup on Android?
The common causes are setup code running too early in main(), a plugin that needs a higher Android version than your app allows, and R8 stripping code in the release build.
Setup order. If main() awaits anything before runApp(), Flutter’s bindings need to exist first. Firebase’s Flutter setup guide shows the order: call WidgetsFlutterBinding.ensureInitialized(), then await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform), then runApp(). The same guide says to run flutterfire configure again before rebuilding so the config stays current. A missing or stale config file is a classic launch killer.
Android version. Flutter’s Android release guide sets minSdk from Flutter’s default and says you’d raise it if a plugin needs a newer API. If logcat names a missing method or class from the Android framework, check each plugin’s minimum.
Shrinking. The same Flutter page says R8 is enabled by default when you build a release APK or app bundle. If debug works and release dies with a class or method that “can’t be found”, add a keep rule for that library, as Google’s shrinking guide recommends. Android Studio’s Logcat can retrace obfuscated stack traces automatically from Android Gradle Plugin 8.12, which saves you decoding names like a.b.a by hand.
Why does my Flutter app crash on startup on iOS?
If it only “crashes” when you tap the icon on your iPhone, you’re probably opening a debug build, which iOS 14 and later won’t run without your computer attached.
In Flutter’s tracking issue for this, a Flutter maintainer says that from Flutter 1.22 a debug build opened from the home screen should show a message instead of crashing, and the issue’s summary lists a profile or release build as the workaround. So: flutter run –release, or ship to TestFlight, and test that.
If it’s a real crash, read the iOS crash report. 2 of Apple’s common crash patterns fit a crash at launch, and a missing permission string is the third thing to rule out.
- A missing framework. Exception EXC_CRASH (SIGABRT) with a termination description saying dyld couldn’t find a framework. If you just added a plugin, check the CocoaPods or Swift Package step ran, then rebuild from a clean state.
- A missing permission string. Apple’s camera and microphone docs say your Info.plist must contain the right usage description key before you request access, or the system terminates your app. A plugin that asks for the camera or photos at startup will kill the app on the spot if the key is missing.
- The watchdog. Code 0x8badf00d means the app was too slow. If the report’s termination description says scene-create, Apple says the app didn’t draw its first frame in time.
For watchdog kills, move the slow work (network calls, database migrations, big JSON parsing) off the main thread and after the first frame. Apple’s watchdog page also warns that the backtrace may not show the culprit, because the slow code may have finished and still used up most of the time budget.
Why does my React Native app crash on launch on Android?
Most React Native launch crashes on Android are either a JavaScript error that’s fatal in release, or a native module problem, and logcat tells you which.
Run adb logcat, reproduce the crash, find FATAL EXCEPTION and read the exception type. Google’s crash guide calls it “usually a very strong hint”.
- A JavaScript exception (React Native’s release debugging page shows a Hermes JavascriptException as its example) means your JS threw on startup. The stack trace will be minified, so symbolicate it with metro-symbolicate and the source map from that exact build. The docs warn that the map has to match the commit you built, because small changes shift the offsets.
- A Java or Kotlin exception inside a library’s package points at a native module. If it only happens in release, suspect ProGuard. React Native’s signing guide says ProGuard often needs configuration specific to each native library and to test thoroughly when it’s on. The guide points to app/proguard-rules.pro, inside your android folder, for the rules.
- A native signal like SIGSEGV is a crash in C or C++ code, often inside a library. Check whether you upgraded something recently.
Crashed right after an upgrade? React Native’s 0.76 release post says the New Architecture is on by default from 0.76, so check each native library’s release notes for support first.
If the app froze before Android killed it, that’s an ANR (Application Not Responding). Android’s ANR guide says one triggers when the app doesn’t respond to input within 5 seconds. The fix is the same as the iOS watchdog: get slow work off the main thread.
Why does a React Native app crash without an error?
Because LogBox, the in-app error screen, is switched off in release builds, so the same error that showed a full-screen message in development just ends the app in production.
To see it again, you’ve got 3 options:
- Run production mode locally. Expo’s npx expo start –no-dev –minify or a local release build reproduces the release behaviour while you’re still plugged in.
- Read the native log. adb logcat on Android. On iOS, Expo’s guide says to open the Console app on your Mac, pick the device and click Start streaming.
- Add a crash reporter and source maps. Source maps are on by default on Android and off by default on iOS. React Native’s docs show how to switch them on in the Xcode build phase with SOURCEMAP_FILE.
One more thing to check when nothing makes sense: config that lives on your machine. API keys and environment variables that sit in a local file often don’t make it into a release build. If your launch code reads a key and gets nothing back, that’s a crash waiting to happen. Our guide to storing API keys safely covers how to get them into the build without putting them where they don’t belong.
How do you stop launch crashes coming back?
Test every release build on real phones before it ships, watch the stores’ crash data after it ships, and fix the biggest cluster first.
Google Play is strict here. Its Android vitals thresholds are a 1.09% user-perceived crash rate across all devices and 8% on any single phone model. Above either, Play may reduce your app’s visibility and may show users a warning on your store listing. Play judges you on the last 28 days, and Google advises fixing the crashes that affect the most users first.
The habits that prevent most of them:
- Run a release build on at least one real iPhone and one real Android phone before every upload. Google’s closed testing track helps here, and our guide to Google Play’s 12 tester rule explains how it works.
- Do a cold start test with flight mode on. Google’s crash guide suggests using airplane mode to reproduce network exceptions, and a launch that expects the network is a launch that crashes on the train.
- Test on an old, low-memory phone. Android’s guide suggests a low-memory emulator for OutOfMemoryError crashes.
The full app testing guide covers device coverage, beta testing and what to retest after each update.
What if your app was built with an AI tool?
The logs above still tell you what broke. Someone who reads the code has to fix it.
AI tools write a decent first version but have never seen your release build run. Paste the logcat output into the tool and it may fix it. If it goes round in circles, stop spending credits.
We’ve run an app platform since 2011 and published thousands of apps to the stores. If your app keeps breaking, our vibe code rescue service starts with an Expert Review at $99 for one agreed problem, and App Rescue at $299 for agreed, verified fixes. If you want to know what a bigger clean-up usually costs first, read what vibe coding clean-up costs.
Picking a framework for the next build? React Native vs Flutter compares the two.
FAQ
Why does my app crash as soon as I open it?
Something in the launch sequence failed: a plugin or SDK set up in the wrong order, a missing config file or permission string, or code the release build stripped out. The exact cause is in the device log, so read adb logcat on Android or the iOS crash report before changing any code.
Why does my Flutter app close immediately on iPhone but run from my computer?
You’re most likely opening a debug build from the home screen, which iOS 14 and later won’t run unless it’s launched from flutter run or Xcode. Install a release or profile build with flutter run –release or through TestFlight, and test that.
Why does my app work in debug but crash in release?
Release builds turn off debugging tools, shrink and rename code, and use different signing and config. Flutter release mode disables assertions and debugging, React Native disables LogBox, and Android’s R8 can strip code a library needs unless you add keep rules.
Where do I find the crash log on Android?
Plug the phone in and run adb logcat, or use Logcat in Android Studio, then search for FATAL EXCEPTION. For crashes in users’ hands, open Android vitals in Play Console.
What does 0x8badf00d mean in an iOS crash report?
It means the iOS watchdog killed your app for blocking the main thread too long, often during launch. Move network calls, database work and large file parsing off the main thread and after the first frame.
Can a crash reporting SDK catch crashes on startup?
Not if the crash happens before the SDK has started. Google lists crashes before SDK initialisation as data Android vitals sees and SDKs can miss, so check the store consoles too.
What crash rate is too high on Google Play?
Google’s bad behaviour threshold is a 1.09% user-perceived crash rate overall and 8% on any single phone model. Above either, Play may reduce your app’s visibility and show a warning on your listing.
Last Updated on December 6, 2026 by Ian Naylor