I am trying to run my react native app (android version) in release mode on emulator. I am running it from android studio.
Suddenly I have started getting this error
FATAL EXCEPTION: Thread-3 Process: com.cgi.oslomelding.foresatte, PID: 7057 java.lang.RuntimeException: Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server. at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method) at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:216) at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:33) at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:234) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1113) at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:920) at java.lang.Thread.run(Thread.java:764)
It seems like the bundle is not working properly. Any thoughts on how to overcome this?
My react-native version is 0.53.3 My gradle version is 4.10.1 My android plugin version is 3.3.0