Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module AppRegistry is not a registered callable module #21089

Closed
gifary opened this issue Sep 13, 2018 · 4 comments
Closed

Module AppRegistry is not a registered callable module #21089

gifary opened this issue Sep 13, 2018 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@gifary
Copy link

gifary commented Sep 13, 2018

### Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.2
CPU: x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
Memory: 46.80 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.8.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.2.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.1, 25.0.0, 25.0.1, 25.0.2, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.2, 27.0.3
API Levels: 10, 21, 23, 24, 25, 26, 27, 7
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1

Hello,

I am getting trouble when BUILD signed APK . My app always crash when open. When build as DEBUG APK it works properly.

My package json file
{
"name": "HelloBeauty",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"react-devtools": "react-devtools"
},
"dependencies": {
"@expo/vector-icons": "^6.3.1",
"axios": "^0.18.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"native-base": "^2.7.2",
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-calendars": "^1.20.0",
"react-native-easy-grid": "^0.2.0",
"react-native-image-picker": "^0.26.10",
"react-native-modal-datetime-picker": "^6.0.0",
"react-native-simple-radio-button": "^2.7.2",
"react-native-spinkit": "^1.1.1",
"react-navigation": "^2.11.2"
},
"devDependencies": {
"babel-jest": "23.4.2",
"babel-preset-react-native": "^5",
"jest": "23.4.2",
"react-devtools": "^3.2.3",
"react-test-renderer": "16.4.1"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts/"
]
}
}

This is error what I get in android studio

``Module AppRegistry is not a registered callable module (calling runApplication)
09-13 11:13:21.580 30979-31060/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.hellobeauty, PID: 30979
com.facebook.react.common.JavascriptException: Module AppRegistry is not a registered callable module (calling runApplication), stack:
value@25:3211
@25:935
value@25:2621
value@25:907

                                                   at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
                                                   at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
                                                   at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
                                                   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:29)
                                                   at android.os.Looper.loop(Looper.java:164)
                                                   at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
                                                   at java.lang.Thread.run(Thread.java:764)
@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@gifary
Copy link
Author

gifary commented Sep 13, 2018

I put Appregistry on index.js

Then in app/build/build.gradle, change the entryFile from app.js to index.js

project.ext.react = [
entryFile: "index.js" // was app.js"
]

@gifary gifary closed this as completed Sep 13, 2018
@Subway19
Copy link

Still getting this issue.

  React Native Environment Info:
    System:
      OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
      CPU: (4) x64 Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz
      Memory: 316.88 MB / 7.69 GB
      Shell: 4.4.19 - /bin/bash
    Binaries:
      Node: 8.3.0 - ~/.nvm/versions/node/v8.3.0/bin/node
      npm: 5.3.0 - ~/.nvm/versions/node/v8.3.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 24.0.1, 26.0.3, 27.0.3, 28.0.2, 28.0.3
        System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64
    npmPackages:
      react: ^16.8.3 => 16.8.6 
      react-native: ^0.59.10 => 0.59.10 

@facebook facebook locked as resolved and limited conversation to collaborators Sep 13, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants