AndroidRuntime: FATAL EXCEPTION: create_react_context
AndroidRuntime: java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release
I upgraded legacy project that is on react native 67.5 to use android SDK 34.
It work fine in debug but on release I get error in log cat from title.
I checked all similar questions and tried all solutions but app always crash in release.
app/build.gradle:
dependencies {
classpath("com.android.tools.build:gradle:7.1.2")
...
gradle-wapper.properties:
distributionUrl=https://services.gradle.org/distributions/gradle-7.3-all.zip
Does anybody have some solution for this problem on RN 67.5?