Skip to content

Unable to build Android release APK (Error calling AppRegistry.runApplication) #15882

@gurmukhp

Description

@gurmukhp

Is this a bug report?

YES

Have you read the Contributing Guidelines?

YES

Environment

  1. react-native -v:
    react-native-cli: 2.0.1
    react-native: 0.48.1

  2. node -v:
    v8.4.0

  3. npm -v:
    5.4.1

  • Target Platform: Android

  • Development Operating System: Mac OS Sierra

  • Build tools: react-native run-android --variant=release

Steps to Reproduce

  1. Attempt to bulid Android release APK using react-native run-android --variant=release
  2. App successfully build

Expected Behavior

App loads on device

Actual Behavior

App keeps crashing on startup. It looks like the JS isn't bundled on the APP. I've tried clearing node-modules, watchman, starting react package manager before or during, but still the same issue. This build absolutely fine on iOS.

Logs:

FATAL EXCEPTION: mqt_js
Process: com.cryptoportfolio, PID: xxx
java.lang.RuntimeException: Error calling AppRegistry.runApplication
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
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)
 Caused by: com.facebook.jni.CppException: Could not get BatchedBridge, make sure your bundle is packaged correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions