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:
- Deleted and Uninstalled all my NPM Modules
- Reset the React-Native Cache
- Clear watchman
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 30
- Comments: 63 (7 by maintainers)
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 Contribute • What 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
I run it on my Nexus 5 which its ROM is Android 6.0.1
The log is following.
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.
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-modereact-native run-android --variant=release
and the console gave me the error that I used a function, which isn’t supported by androidString.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 ?