react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

RNN V1 Unable to launch redbox because react activity is not available

Open qiepeipei opened this issue 8 years ago • 9 comments

Issue Description

[RNN V1 Unable to launch redbox because react activity is not available]

Configure by document Try multiple react native version Nothing works .
react native Initialization project normal

04-28 15:23:32.545 7807-7857/? E/unknown:ReactNative: Exception in native call 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) 04-28 15:23:32.545 7807-7807/? E/unknown:ReactNative: Unable to launch redbox because react activity is not available, here is the error that redbox would've displayed: Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server. 04-28 15:23:39.073 7807-7807/com.meijia_new_var54 E/unknown:ReactNative: Unable to launch dev options menu because react activity isn't available 04-28 15:23:40.141 7807-7807/com.meijia_new_var54 E/unknown:ReactNative: Unable to launch dev options menu because react activity isn't available

111


Environment

  • React Native Navigation version: 1.1.451
  • React Native version: 0.54.0
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Debug

qiepeipei avatar Apr 28 '18 07:04 qiepeipei

Not sure if this helps but this is the error I get.

05-05 09:26:17.775 6279-6313/com.rosenowscanner E/unknown:ReactNative: Exception in native call
    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.rosenowscanner/com.reactnativenavigation.controllers.NavigationActivity}; have you declared this activity in your AndroidManifest.xml?
        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1996)
        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1664)
        at android.app.ContextImpl.startActivity(ContextImpl.java:890)
        at android.app.ContextImpl.startActivity(ContextImpl.java:861)
        at android.content.ContextWrapper.startActivity(ContextWrapper.java:378)
        at com.reactnativenavigation.NavigationApplication.startActivity(NavigationApplication.java:52)
        at com.reactnativenavigation.controllers.NavigationCommandsHandler.startApp(NavigationCommandsHandler.java:31)
        at com.reactnativenavigation.bridge.NavigationReactModule.startApp(NavigationReactModule.java:58)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:374)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:819)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
        at android.os.Looper.loop(Looper.java:164)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
        at java.lang.Thread.run(Thread.java:764)
05-05 09:26:17.776 6279-6279/com.rosenowscanner E/unknown:ReactNative: Unable to launch redbox because react activity is not available, here is the error that redbox would've displayed: Unable to find explicit activity class {com.rosenowscanner/com.reactnativenavigation.controllers.NavigationActivity}; have you declared this activity in your AndroidManifest.xml?

iarambula avatar May 05 '18 09:05 iarambula

Fixed in #2801 but waits to merge.

krystofcelba avatar May 05 '18 13:05 krystofcelba

@krystofcelba android 8.0 Problem reproduction

qiepeipei avatar May 07 '18 00:05 qiepeipei

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Jun 21 '18 01:06 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jun 28 '18 01:06 stale[bot]

i have a same problem. please open the issue.

emadbayat avatar Oct 10 '18 11:10 emadbayat

same problem as me my workspace environmet info here React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 30.57 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 9.10.0 - /usr/local/bin/node Yarn: 1.5.1 - /usr/local/bin/yarn npm: 5.6.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 11.3, macOS 10.13, tvOS 11.3, watchOS 4.3 Android SDK: Build Tools: 20.0.0, 21.1.2, 23.0.1, 23.0.2, 23.0.3, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.2, 27.0.3, 28.0.1, 28.0.2 API Levels: 19, 21, 22, 23, 24, 25, 26, 27, 28 IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 9.3.1/9E501 - /usr/bin/xcodebuild npmPackages: react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728 react-native: 0.57.3 => 0.57.3 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-create-library: 3.1.2

oujieying avatar Oct 16 '18 07:10 oujieying

I have the same problem

0x01lab avatar Oct 16 '18 09:10 0x01lab

Still active, temporary workaround at https://github.com/wix/react-native-navigation/pull/2801#issuecomment-394278656

jaimeagudo avatar Oct 17 '18 09:10 jaimeagudo