signed app not working for react native android
See original GitHub issueHi, I’ve cloned clean project and tried to generate signed apk using instruction from react native docs. Apk is generated but app crashes immediately after running it on device.
react-native-cli@0.1.8 node version : v5.2.0 tested on Samsung GT-P3110 (android 4.2.2/api level 17)
error logs from logcat:
01-07 23:02:37.127 13195-13212/? E/ReactNativeJS: undefined is not a function (evaluating 'babelHelpers.jsx(i["default"],{})')
01-07 23:02:37.143 13195-13213/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
com.facebook.react.modules.core.JavascriptException: <unknown>
index.android.bundle:1:12596
r
index.android.bundle:1:575
a
index.android.bundle:1:241
<unknown>
index.android.bundle:1:11402
r
index.android.bundle:1:575
r
index.android.bundle:1:304
a
index.android.bundle:1:241
<unknown>
global code@index.android.bundle:59:28893
01-07 23:02:37.166 457-480/? E/SurfaceFlinger: #### captureScreenImplLocked
01-07 23:02:37.260 13195-13212/? E/ReactNativeJS: undefined is not a function (evaluating 'babelHelpers.jsx(d,{})')
01-07 23:02:37.268 13195-13212/? E/ReactNativeJS: undefined is not an object (evaluating 'n[a]')
01-07 23:02:37.494 469-530/? E/android.os.Debug: !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
01-07 23:02:45.557 13195-13212/? E/ReactNativeJS: Requiring module "AppRegistry" which threw an exception
01-07 23:02:45.565 13195-13212/? E/ReactNativeJS: undefined is not an object (evaluating 'n[a]')
thanks for any help
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
The Android App Bundle was not signed using react native
Android App Bundle is signed with the wrong key. Ensure that your app bundle is signed with the correct signing key and try...
Read more >Publishing to Google Play Store - React Native
Publishing to Google Play Store. Android requires that all apps be digitally signed with a certificate before they can be installed.
Read more >App has stopped no error are showing on run android #26771
App works on ios perfectly. react-native info: System: OS: macOS Mojave ... App has stopped no error are showing on run android #26771....
Read more >Generating Signed APK · React Native - GitHub Pages
Setting up gradle variables · Place the my-release-key.keystore file under the android/app directory in your project folder. · Edit the file ~/.gradle/gradle.
Read more >Generating Signed APK – React Native - Deco IDE
Place the my-release-key.keystore file under the android/app directory in your project folder. Edit the file ~/.gradle/gradle.properties and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh well - this is a result of changes from Babel 5 to 6, I believe. If you generate the helpers manually using instructions at http://stackoverflow.com/questions/33703919/how-to-use-babel-6-external-helpers-in-the-browser and then require it in the code, it all works fine - even on the signed app.
Some more details about the changes. http://www.2ality.com/2015/12/babel6-helpersstandard-library.html
Not sure where to plug in the babel-plugin-external-helpers plugin(babel-plugin-external-helpers-2 was renamed to babel-plugin-external-helpers)! Tried couple of options but didn’t help. Maybe somebody here can find the right place for it in the sequence.
The generated helper file-
In my case I solved the issue by deleting /android and /ios folders and running
react-native eject
command. Indeed, I upgraded RN to 0.49 but didn’t delete these two folders. It was working in dev but not in release mode. I hope it can help someone…good luck !