-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Upgrade to 0.57 Android crash on launch #21925
Comments
Have you tried moving to react-native version 0.57.1? |
No, |
the same in 0.57.1 logcat:
and metro bundler lunchPackager: Looking for JS files in Loading dependency graph, done. ::1 - - [24/Oct/2018:17:15:21 +0000] "GET /index.android.delta?platform=android&dev=true&minify=false HTTP/1.1" 200 - "http://localhost:8081/debugger-ui/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36" ::1 - - [24/Oct/2018:17:15:26 +0000] "GET /index.android.map?platform=android&dev=true&minify=false HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36" |
more information: when i click on one of warning yellow boxes i get the same crash |
solved by removing a workaround i implemented in i removed: allprojects {
repositories {
flatDir {
dirs 'libs', './libs'
}
}
configurations {
all*.exclude module: 'drawee' // Doychev's suggested solution can be found over here
}
} and from android/app/libs |
I got this exact error. It turns out that when I added |
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!! |
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) 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:
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
The text was updated successfully, but these errors were encountered: