Upgrade to 0.57 Android crash on launch
See original GitHub issue- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i7-4850HQ CPU @ 2.30GHz Memory: 2.71 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.7.0 - /usr/local/bin/node Yarn: 1.9.4 - /usr/local/bin/yarn npm: 6.1.0 - /usr/local/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3 Android SDK: Build Tools: 22.0.1, 23.0.1, 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.0, 26.0.1, 27.0.0, 27.0.1, 27.0.2, 27.0.3 API Levels: 19, 21, 22, 23, 24, 25, 26, 27 IDEs: Android Studio: 3.1 AI-173.4670197 Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild npmPackages: react: 16.5.1 => 16.5.1 react-native: 0.57.0 => 0.57.0 npmGlobalPackages: react-native-cli: 2.0.1
Description
Ios runs fine, Android builds successfully lunches Lunch screen and then crashes with ‘App has stoped message’ and no js crash log
Logcat:
java.lang.AbstractMethodError abstract method "com.facebook.drawee.controller.AbstractDraweeControllerBuilder com.facebook.drawee.controller.AbstractDraweeControllerBuilder.getThis()" AbstractDraweeControllerBuilder.java:106 com.facebook.drawee.controller.AbstractDraweeControllerBuilder.reset ReactImageView.java:509 com.facebook.react.views.image.ReactImageView.maybeUpdateView ReactImageManager.java:209 com.facebook.react.views.image.ReactImageManager.onAfterUpdateTransaction ReactImageManager.java:29 com.facebook.react.views.image.ReactImageManager.onAfterUpdateTransaction ViewManager.java:33 com.facebook.react.uimanager.ViewManager.updateProperties NativeViewHierarchyManager.java:269 com.facebook.react.uimanager.NativeViewHierarchyManager.createView UIViewOperationQueue.java:200 com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute UIViewOperationQueue.java:1085 com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations UIViewOperationQueue.java:1056 com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded GuardedFrameCallback.java:29 com.facebook.react.uimanager.GuardedFrameCallback.doFrame ReactChoreographer.java:134 com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame ChoreographerCompat.java:105 com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame Choreographer.java:909 android.view.Choreographer$CallbackRecord.run Choreographer.java:723 android.view.Choreographer.doCallbacks Choreographer.java:655 android.view.Choreographer.doFrame Choreographer.java:897 android.view.Choreographer$FrameDisplayEventReceiver.run Handler.java:789 android.os.Handler.handleCallback Handler.java:98 android.os.Handler.dispatchMessage Looper.java:164 android.os.Looper.loop ActivityThread.java:6541 android.app.ActivityThread.main Method.java:-2 java.lang.reflect.Method.invoke Zygote.java:240 com.android.internal.os.Zygote$MethodAndArgsCaller.run ZygoteInit.java:767 com.android.internal.os.ZygoteInit.main
cannot figure it out!?
my dependencies:
"dependencies": {
"apisauce": "^0.14.3",
"buffer": "^5.0.8",
"bugsnag-react-native": "^2.8.0",
"bugsnag-sourcemaps": "^1.0.1",
"currency-symbol-map": "^4.0.4",
"format-json": "^1.0.3",
"libphonenumber-js": "^1.0.24",
"lodash": "^4.17.2",
"prop-types": "^15.6.0",
"querystringify": "1.0.0",
"ramda": "^0.24.1",
"react": "16.5.1",
"react-native": "0.57.0",
"react-native-animatable": "^1.2.4",
"react-native-app-link": "^0.4.0",
"react-native-autogrow-textinput": "^5.0.0",
"react-native-blur": "^3.2.2",
"react-native-check-app-install": "^0.0.4",
"react-native-check-box": "^2.1.0",
"react-native-collapsible": "^0.10.0",
"react-native-config": "^0.11.5",
"react-native-country-picker-modal": "^0.5.1",
"react-native-device-info": "^0.16.0",
"react-native-drawer": "^2.5.0",
"react-native-elements": "^0.19.0",
"react-native-fast-image": "^5.0.11",
"react-native-fbsdk": "^0.8.0",
"react-native-firebase": "^4.2.0",
"react-native-fused-location": "^0.2.1",
"react-native-geolocation-service": "^1.0.3",
"react-native-hyperlink": "^0.0.14",
"react-native-i18n": "2.0.10",
"react-native-image-crop-picker": "^0.21.2",
"react-native-keyboard-aware-scroll-view": "^0.4.3",
"react-native-languages": "^1.0.6",
"react-native-map-clustering": "^1.2.8",
"react-native-maps": "0.22.0",
"react-native-maps-super-cluster": "^1.5.0",
"react-native-masked-text": "^1.6.5",
"react-native-material-textfield": "^0.12.0",
"react-native-modal": "^4.1.1",
"react-native-modal-dropdown": "^0.6.0",
"react-native-picker-select": "^4.2.0",
"react-native-sha256": "^1.1.1",
"react-native-star-rating": "^1.1.0",
"react-native-swiper": "^1.5.13",
"react-native-uuid": "^1.4.9",
"react-native-vector-icons": "^4.6.0",
"react-native-version": "^2.3.1",
"react-navigation": "^2.18.1",
"react-navigation-redux-helpers": "^2.0.6",
"react-redux": "^5.0.2",
"redux": "^4.0.1",
"redux-enhancer-react-native-appstate": "^0.3.1",
"redux-logic": "^0.12.3",
"redux-persist": "^4.1.0",
"redux-saga": "^0.16.2",
"reduxsauce": "0.4.1",
"safe-buffer": "^5.1.1",
"seamless-immutable": "^7.0.1",
"url-parse": "^1.4.1"
},
"devDependencies": {
"@babel/runtime": "7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-plugin-ignite-ignore-reactotron": "^0.3.0",
"babel-preset-es2015": "^6.24.1",
"enzyme": "^3.7.0",
"husky": "^1.1.1",
"ignite-animatable": "^1.0.0",
"ignite-dev-screens": "^2.3.0",
"ignite-i18n": "^1.1.1",
"ignite-ir-boilerplate": "^2.3.3",
"ignite-standard": "^1.0.0",
"ignite-vector-icons": "^1.1.0",
"jest": "^23.6.0",
"metro-react-native-babel-preset": "^0.45.0",
"mockery": "^2.1.0",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.5.1",
"react-test-renderer": "^16.5.1",
"reactotron-react-native": "^2.1.0",
"reactotron-redux": "^2.1.0",
"reactotron-redux-saga": "^2.1.0",
"schedule": "0.4.0",
"snazzy": "^8.0.0",
"standard": "^12.0.1"
},
"jest": {
"testMatch": [
"**/Tests/**/*.js",
"**/?(*.)(spec|test).js?(x)"
],
"testPathIgnorePatterns": [
"/node_modules/",
"Tests/Setup.js"
],
"setupFiles": [
"./Tests/Setup"
],
"preset": "react-native"
},
"config": {},
"standard": {
"parser": "babel-eslint",
"globals": [
"describe",
"test",
"jest",
"expect",
"fetch",
"navigator",
"__DEV__",
"XMLHttpRequest",
"FormData",
"React$Element"
]
},
"rnpm": {
"assets": [
"./App/fonts"
]
}
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top GitHub Comments
solved by removing a workaround i implemented in
build.gradle
- an old issue in Fresco used byreact-native-maps
found a solution that worked at the time with RN 0.53 and Android apk 26i removed:
and from android/app/libs closing
Thank you very much, that worked for me after days of trying to migrate to RN 0.59. RN migration is a real mess. Thanks bro!!