react-native: [Android Could not find generated setter for class com.facebook.react.views

React Native Version: 0.22.2
Platform: Android
System: Mac OSX 10.11.4
Device: Nexus 9 (6.0.1)

I’m in the process of upgrading our React-Native app from 0.20 to 0.22. Was working on fixing up the Android version of the app when I noticed the following warnings.

Thought that it was an issue with our code so I made a fresh project with react-native init AwesomeProject just to make sure. Turns out that I got the same warning messages.

03-28 22:04:49.753: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
03-28 22:04:49.754: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
03-28 22:04:49.757: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
03-28 22:04:49.761: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
03-28 22:04:49.762: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
03-28 22:04:49.768: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
03-28 22:04:49.775: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
03-28 22:04:49.779: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
03-28 22:04:49.780: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
03-28 22:04:49.786: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
03-28 22:04:49.787: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
03-28 22:04:49.789: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
03-28 22:04:49.795: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
03-28 22:04:49.798: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
03-28 22:04:49.799: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
03-28 22:04:49.803: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
03-28 22:04:49.806: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
03-28 22:04:49.808: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
03-28 22:04:49.813: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
03-28 22:04:49.817: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.textfrescosupport.FrescoBasedReactTextInlineImageViewManager
03-28 22:04:49.817: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.textfrescosupport.FrescoBasedReactTextInlineImageShadowNode
03-28 22:04:49.819: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
03-28 22:04:49.824: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
03-28 22:04:49.825: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
03-28 22:04:49.825: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
03-28 22:04:49.831: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
03-28 22:04:49.837: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
03-28 22:04:49.839: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
03-28 22:04:49.840: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
03-28 22:04:49.844: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
03-28 22:04:49.847: W/unknown:ViewManagerPropertyUpdater(20162): Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager

In the main project, I got similar messages with other modules that extends com.facebook.react.views.

I have:

  1. Deleted and Uninstalled all my NPM Modules
  2. Reset the React-Native Cache
  3. Clear watchman

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 30
  • Comments: 63 (7 by maintainers)

Most upvoted comments

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

Following. I am getting this error in a a project with React 16.0.0 and RN0.50.3. I am not using google maps in this project.

This fixes the problem for us: https://github.com/infinitered/ignite/blob/master/ignite-base/android/app/build.gradle#L147-L156

This enforces google play to be the same version across imported modules.

same problem.

I create a demo project using

react-native init ReactNativeAwesomeProject
cd ReactNativeAwesomeProject
react-native run-android

I run it on my Nexus 5 which its ROM is Android 6.0.1

The log is following.

05-02 11:12:46.108   897 10596 I ActivityManager: Start proc 23534:com.reactnativeawesomeproject/u0a99 for activity com.reactnativeawesomeproject/.MainActivity
05-02 11:12:46.156 23534 23534 V fb-UnpackingSoSource: locked dso store /data/user/0/com.reactnativeawesomeproject/lib-main
05-02 11:12:46.157 23534 23534 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.reactnativeawesomeproject/lib-main
05-02 11:12:46.157 23534 23534 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.reactnativeawesomeproject/lib-main
05-02 11:12:46.188 10593 10593 W Binder_D: type=1400 audit(0.0:9814): avc: denied { ioctl } for path="socket:[3213252]" dev="sockfs" ino=3213252 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.188 10593 10593 W Binder_D: type=1400 audit(0.0:9815): avc: denied { ioctl } for path="socket:[3213252]" dev="sockfs" ino=3213252 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.199 23534 23558 W unknown:PackagerConnectionSettings: You seem to be running on device. Run 'adb reverse tcp:8081 tcp:8081' to forward the debug server's port to the device.
05-02 11:12:46.201 23534 23557 W unknown:PackagerConnectionSettings: You seem to be running on device. Run 'adb reverse tcp:8081 tcp:8081' to forward the debug server's port to the device.
05-02 11:12:46.240 23534 23534 I art     : Thread[1,tid=23534,Native,Thread*=0xb4db6500,peer=0x740392a0,"main"] recursive attempt to load library "/data/app/com.reactnativeawesomeproject-1/lib/arm/libfb.so"
05-02 11:12:46.240 23534 23534 W unknown:PackagerConnectionSettings: You seem to be running on device. Run 'adb reverse tcp:8081 tcp:8081' to forward the debug server's port to the device.
05-02 11:12:46.246 23534 23534 W unknown:React: Packager connection already open, nooping.
05-02 11:12:46.246 23534 23534 W unknown:React: Inspector connection already open, nooping.
05-02 11:12:46.238  1010  1010 W Binder_4: type=1400 audit(0.0:9816): avc: denied { ioctl } for path="socket:[3211654]" dev="sockfs" ino=3211654 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.238  1010  1010 W Binder_4: type=1400 audit(0.0:9817): avc: denied { ioctl } for path="socket:[3211654]" dev="sockfs" ino=3211654 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.252 23534 23567 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-02 11:12:46.238  1010  1010 W Binder_4: type=1400 audit(0.0:9818): avc: denied { ioctl } for path="socket:[3211656]" dev="sockfs" ino=3211656 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.238  1010  1010 W Binder_4: type=1400 audit(0.0:9819): avc: denied { ioctl } for path="socket:[3211656]" dev="sockfs" ino=3211656 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.281 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
05-02 11:12:46.282 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
05-02 11:12:46.278  1176  1176 W Binder_4: type=1400 audit(0.0:9820): avc: denied { ioctl } for path="socket:[3204024]" dev="sockfs" ino=3204024 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.278  1176  1176 W Binder_4: type=1400 audit(0.0:9821): avc: denied { ioctl } for path="socket:[3204024]" dev="sockfs" ino=3204024 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.287 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
05-02 11:12:46.287 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
05-02 11:12:46.291 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
05-02 11:12:46.292 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
05-02 11:12:46.293 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
05-02 11:12:46.298 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
05-02 11:12:46.306 23534 23567 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
05-02 11:12:46.308 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
05-02 11:12:46.311 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
05-02 11:12:46.312 23534 23567 I OpenGLRenderer: Initialized EGL, version 1.4
05-02 11:12:46.312 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
05-02 11:12:46.317 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
05-02 11:12:46.317 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
05-02 11:12:46.325 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
05-02 11:12:46.331 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
05-02 11:12:46.333 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
05-02 11:12:46.334 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
05-02 11:12:46.336 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
05-02 11:12:46.328  1483  1483 W Binder_8: type=1400 audit(0.0:9822): avc: denied { ioctl } for path="socket:[3204029]" dev="sockfs" ino=3204029 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.328  1483  1483 W Binder_8: type=1400 audit(0.0:9823): avc: denied { ioctl } for path="socket:[3204029]" dev="sockfs" ino=3204029 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.338 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
05-02 11:12:46.343 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
05-02 11:12:46.338   907   907 W Binder_1: type=1400 audit(0.0:9824): avc: denied { ioctl } for path="socket:[3204028]" dev="sockfs" ino=3204028 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.338   907   907 W Binder_1: type=1400 audit(0.0:9825): avc: denied { ioctl } for path="socket:[3204028]" dev="sockfs" ino=3204028 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:46.351 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
05-02 11:12:46.353   897   916 I ActivityManager: Displayed com.reactnativeawesomeproject/.MainActivity: +279ms
05-02 11:12:46.357 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
05-02 11:12:46.360 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
05-02 11:12:46.361 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
05-02 11:12:46.363 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
05-02 11:12:46.363 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
05-02 11:12:46.364 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
05-02 11:12:46.366 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
05-02 11:12:46.375 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
05-02 11:12:46.376 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
05-02 11:12:46.377 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
05-02 11:12:46.383 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
05-02 11:12:46.387 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
05-02 11:12:46.390 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
05-02 11:12:46.391 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
05-02 11:12:46.394 23534 23566 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
05-02 11:12:46.417 23534 23566 W unknown:React: Initializing React Xplat Bridge.
05-02 11:12:46.421 23534 23566 W unknown:React: Initializing React Xplat Bridge before initializeBridge
05-02 11:12:46.433 23534 23566 W unknown:React: Initializing React Xplat Bridge after initializeBridge
05-02 11:12:46.434 23534 23534 W unknown:React: Packager connection already open, nooping.
05-02 11:12:46.434 23534 23534 W unknown:React: Inspector connection already open, nooping.
05-02 11:12:46.973 23534 23574 I WebViewFactory: Loading com.google.android.webview version 44.0.2403.117 (code 246011700)
05-02 11:12:47.018 23534 23574 W System  : ClassLoader referenced unknown path: /system/app/WebViewGoogle/lib/arm
05-02 11:12:47.028 23534 23574 I LibraryLoader: Time to load native libraries: 4 ms (timestamps 1539-1543)
05-02 11:12:47.029 23534 23574 I LibraryLoader: Expected native library version number "",actual native library version number ""
05-02 11:12:47.043 23534 23574 W art     : Attempt to remove non-JNI local reference, dumping thread
05-02 11:12:47.167 23534 23573 I ReactNativeJS: [CodePush] The CodePush module doesn't appear to be properly installed. Please double-check that everything is setup correctly.
05-02 11:12:47.307 23534 23573 E ReactNativeJS: No dimension set for key window
05-02 11:12:47.348  1399  1399 W Binder_7: type=1400 audit(0.0:9826): avc: denied { ioctl } for path="socket:[3213270]" dev="sockfs" ino=3213270 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:47.348  1399  1399 W Binder_7: type=1400 audit(0.0:9827): avc: denied { ioctl } for path="socket:[3213270]" dev="sockfs" ino=3213270 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:47.402 23534 23573 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
05-02 11:12:47.428 10593 10593 W Binder_D: type=1400 audit(0.0:9828): avc: denied { ioctl } for path="socket:[3204028]" dev="sockfs" ino=3204028 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:47.428 10593 10593 W Binder_D: type=1400 audit(0.0:9829): avc: denied { ioctl } for path="socket:[3204028]" dev="sockfs" ino=3204028 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:48.764 23534 23534 D AndroidRuntime: Shutting down VM
05-02 11:12:48.765 23534 23534 E AndroidRuntime: FATAL EXCEPTION: main
05-02 11:12:48.765 23534 23534 E AndroidRuntime: Process: com.reactnativeawesomeproject, PID: 23534
05-02 11:12:48.765 23534 23534 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at java.io.File.fixSlashes(File.java:183)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at java.io.File.<init>(File.java:130)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.facebook.react.devsupport.StackTraceHelper$StackFrameImpl.<init>(StackTraceHelper.java:43)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.facebook.react.devsupport.StackTraceHelper$StackFrameImpl.<init>(StackTraceHelper.java:31)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.facebook.react.devsupport.StackTraceHelper.convertJsStackTrace(StackTraceHelper.java:115)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.facebook.react.devsupport.DevSupportManagerImpl$3.run(DevSupportManagerImpl.java:294)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:739)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:95)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:148)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:5417)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
05-02 11:12:48.765 23534 23534 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
05-02 11:12:48.766   897 10593 W ActivityManager:   Force finishing activity com.reactnativeawesomeproject/.MainActivity
05-02 11:12:48.824   897  1003 I OpenGLRenderer: Initialized EGL, version 1.4
05-02 11:12:49.261   305   935 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
05-02 11:12:49.262   305   935 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
05-02 11:12:49.290   897   910 W ActivityManager: Activity pause timeout for ActivityRecord{a40a087 u0 com.reactnativeawesomeproject/.MainActivity t97 f}
05-02 11:12:52.005   897 17338 D NetlinkSocketObserver: NeighborEvent{elapsedMs=432266510, 113.55.112.1, [00005E000103], RTM_NEWNEIGH, NUD_STALE}
05-02 11:12:53.805   305   935 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
05-02 11:12:53.806 23534 23534 I Process : Sending signal. PID: 23534 SIG: 9
05-02 11:12:53.815   305   935 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
05-02 11:12:53.815   305   935 D msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
05-02 11:12:53.815   305   935 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
05-02 11:12:53.819   305   935 D audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
05-02 11:12:53.836   897 14192 I WindowState: WIN DEATH: Window{8534050 u0 com.reactnativeawesomeproject/com.reactnativeawesomeproject.MainActivity}
05-02 11:12:53.840   897  1228 D GraphicsStats: Buffer count: 11
05-02 11:12:53.842   897  1483 I WindowState: WIN DEATH: Window{a79a181 u0 com.reactnativeawesomeproject}
05-02 11:12:53.875   897  3422 I ActivityManager: Process com.reactnativeawesomeproject (pid 23534) has died
05-02 11:12:53.875   897  3422 D ActivityManager: cleanUpApplicationRecord -- 23534
05-02 11:12:53.868  1176  1176 W Binder_4: type=1400 audit(0.0:9830): avc: denied { ioctl } for path="socket:[16611]" dev="sockfs" ino=16611 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:53.878   897   916 W WindowAnimator: Failed to dispatch window animation state change.
05-02 11:12:53.878   897   916 W WindowAnimator: android.os.DeadObjectException
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.BinderProxy.transactNative(Native Method)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.BinderProxy.transact(Binder.java:503)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.view.IWindow$Stub$Proxy.onAnimationStarted(IWindow.java:520)
05-02 11:12:53.878   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:282)
05-02 11:12:53.878   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
05-02 11:12:53.878   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
05-02 11:12:53.878   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.view.Choreographer.doCallbacks(Choreographer.java:670)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.view.Choreographer.doFrame(Choreographer.java:603)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.Handler.handleCallback(Handler.java:739)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.Handler.dispatchMessage(Handler.java:95)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.Looper.loop(Looper.java:148)
05-02 11:12:53.878   897   916 W WindowAnimator:        at android.os.HandlerThread.run(HandlerThread.java:61)
05-02 11:12:53.878   897   916 W WindowAnimator:        at com.android.server.ServiceThread.run(ServiceThread.java:46)
05-02 11:12:53.879   897  1176 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 23534 uid 10099
05-02 11:12:53.868  1176  1176 W Binder_4: type=1400 audit(0.0:9831): avc: denied { ioctl } for path="socket:[16611]" dev="sockfs" ino=16611 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:12:53.986   897   916 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
05-02 11:12:54.085   897   916 W WindowAnimator: Failed to dispatch window animation state change.
05-02 11:12:54.085   897   916 W WindowAnimator: android.os.DeadObjectException
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.BinderProxy.transactNative(Native Method)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.BinderProxy.transact(Binder.java:503)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
05-02 11:12:54.085   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
05-02 11:12:54.085   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
05-02 11:12:54.085   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
05-02 11:12:54.085   897   916 W WindowAnimator:        at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.view.Choreographer.doCallbacks(Choreographer.java:670)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.view.Choreographer.doFrame(Choreographer.java:603)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.Handler.handleCallback(Handler.java:739)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.Handler.dispatchMessage(Handler.java:95)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.Looper.loop(Looper.java:148)
05-02 11:12:54.085   897   916 W WindowAnimator:        at android.os.HandlerThread.run(HandlerThread.java:61)
05-02 11:12:54.085   897   916 W WindowAnimator:        at com.android.server.ServiceThread.run(ServiceThread.java:46)
05-02 11:12:54.087   897   916 W AppOps  : Finishing op nesting under-run: uid 10099 pkg com.reactnativeawesomeproject code 24 time=0 duration=0 nesting=0
05-02 11:12:57.003   897  1013 D ConnectivityService: updateNetworkScore for NetworkAgentInfo [WIFI () - 104] to 56
05-02 11:12:57.021   305   935 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
05-02 11:12:57.021   305   935 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
05-02 11:13:00.415   897 17338 D NetlinkSocketObserver: NeighborEvent{elapsedMs=432274920, 113.55.112.1, [00005E000103], RTM_NEWNEIGH, NUD_PROBE}
05-02 11:13:04.378   897   992 W ActivityManager: Unable to start service Intent { act=APP_CHANGE_ACTION flg=0x4 cmp=com.wandoujia.phoenix2/com.wandoujia.base.services.AlarmService (has extras) } U=0: not found
05-02 11:13:21.524  2388  2388 I Ads     : Ad is not visible. Not refreshing ad.
05-02 11:13:21.524  2388  2388 I Ads     : Scheduling ad refresh 60000 milliseconds from now.
05-02 11:13:22.765   897 17338 D NetlinkSocketObserver: NeighborEvent{elapsedMs=432297270, 113.55.112.1, [00005E000103], RTM_NEWNEIGH, NUD_STALE}
05-02 11:13:23.708   907   907 W Binder_1: type=1400 audit(0.0:9832): avc: denied { ioctl } for path="socket:[16611]" dev="sockfs" ino=16611 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:13:23.708   907   907 W Binder_1: type=1400 audit(0.0:9833): avc: denied { ioctl } for path="socket:[16611]" dev="sockfs" ino=16611 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-02 11:13:23.702   897   918 I PowerManagerService: Going to sleep due to screen timeout (uid 1000)...
05-02 11:13:23.703   897   918 I PowerManagerService: Sleeping (uid 1000)...
05-02 11:13:24.256   897   918 V KeyguardServiceDelegate: onScreenTurnedOff()
05-02 11:13:24.343   897   916 I DisplayManagerService: Display device changed state: "鍐呯疆灞忓箷", OFF
05-02 11:13:24.349   298   298 D SurfaceFlinger: Set power mode=0, type=0 flinger=0xb6a64000
05-02 11:13:24.349   298   298 D qdhwcomposer: hwc_blank: Blanking display: 0
05-02 11:13:24.615   298   298 D qdhwcomposer: hwc_blank: Done blanking display: 0
05-02 11:13:24.616   897  1029 D SurfaceControl: Excessive delay in setPowerMode(): 273ms
05-02 11:13:24.617  1723  1735 E ANDR-PERF-LOCK: Failed to apply optimization for resource: 4 level: 0
05-02 11:13:24.644   305   305 D audio_hw_primary: adev_set_parameters: enter: screen_state=off
05-02 11:13:24.653   897  1009 D WifiConfigStore: Retrieve network priorities after PNO.
05-02 11:13:24.666   897  1009 E native  : do suspend true

I am using 0.54.2 and this is still happening. Should open the issue again.

same here “react-native”: “^0.31.0” HTC m8 with CM 13.0(Android 6.0.1)

I can confirm the same problem, RN 0.22.0. I’ve been trying to install signed APK to a device with Android 5.0.1. The app crashes at point of launch.

still happening react-native:0.55.3 react-native-cli:2.0.1 react:16.3.1

In my case I solved this by using same google play services versions across imported modules. In my case 2 modules were using google play services.

  1. react-native-maps module was using com.google.android.gms:play-services-maps:10.2.4
  2. background-location module was using com.google.android.gms:play-services-location:11.0.2

So, I changed 10.2.4 to 11.0.2 you can find this in build.gradle file under dependencies { } This solved the exact bug instantly! 💯

still happening… but only via sdk and not in debug mode

I am using 0.53.0 and this is still happening.

Using 0.47.2, facing the same issue. Did anyone get this resolved?

In my case, I started the app in debug-mode react-native run-android instead of release-mode react-native run-android --variant=release and the console gave me the error that I used a function, which isn’t supported by android String.fromCodePoint.

Looks like it’s multiple versions of google play services. Stopped the crash, but the errors still happen. Editing node module google play versions fixed this for now… sooo 👍

Anyone from react native community , or module developers? Perhaps a flag can be set for java to stop looking for properties ?