Skip to content
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

android build apk error on master #5304

Closed
nowaits opened this issue Jan 14, 2016 · 28 comments
Closed

android build apk error on master #5304

nowaits opened this issue Jan 14, 2016 · 28 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@nowaits
Copy link

nowaits commented Jan 14, 2016

01-14 17:58:43.349 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
01-14 17:58:43.439 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
01-14 17:58:43.439 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
01-14 17:58:43.439 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
01-14 17:58:43.439 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
01-14 17:58:43.439 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
01-14 17:58:43.469 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
01-14 17:58:43.469 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
01-14 17:58:43.469 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
01-14 17:58:43.469 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
01-14 17:58:43.479 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
01-14 17:58:43.479 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
01-14 17:58:43.489 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
01-14 17:58:43.489 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
01-14 17:58:43.499 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
01-14 17:58:43.499 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageViewManager
01-14 17:58:43.499 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageShadowNode
01-14 17:58:43.509 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
01-14 17:58:43.509 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
01-14 17:58:43.519 27580-27635/com.mmww.erxi W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager

@facebook-github-bot
Copy link
Contributor

Hey nowaits, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

@skevy
Copy link
Contributor

skevy commented Jan 14, 2016

Can you help us understand how to reproduce this issue, and what steps you've already taken to attempt to resolve it?

@nowaits
Copy link
Author

nowaits commented Jan 15, 2016

i set minifyEnabled in gradle file on release build mode.

@nowaits
Copy link
Author

nowaits commented Jan 15, 2016

i set minifyEnabled true in gradle file on release build mode.

@nowaits
Copy link
Author

nowaits commented Jan 15, 2016

i set minifyEnabled in gradle file on release build type

发自我的小米手机在 Adam Miskiewicz [email protected],2016年1月15日 上午4:02写道:Can you help us understand how to reproduce this issue, and what steps you've already taken to resolve it?

—Reply to this email directly or view it on GitHub.

@cosmith
Copy link
Contributor

cosmith commented Feb 1, 2016

I have the same issue after upgrading to RN 0.19 on Android. Changing the value of minifyEnabled doesn't seem to have any effect... Has there been a change to the way UI components are defined?

My native modules other than the Google Maps one still work well... not sure why this one doesn't, but it's the only one that defines a UI component.

The @ReactProp annotated setters are not called, but events are being sent from native to JS.

Example method:

    @SuppressWarnings("unused")
    @ReactProp(name = "cameraPosition")
    public void setCameraPosition(GoogleMapView view, ReadableMap options) {
        Log.d(REACT_CLASS, "cameraPosition set");
        view.setCameraPosition(options);
    }

Logs:

02-01 12:11:49.663 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
02-01 12:11:49.665 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
02-01 12:11:49.668 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
02-01 12:11:49.672 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
02-01 12:11:49.674 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
02-01 12:11:49.680 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
02-01 12:11:49.688 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
02-01 12:11:49.691 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
02-01 12:11:49.692 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
02-01 12:11:49.696 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
02-01 12:11:49.697 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
02-01 12:11:49.699 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
02-01 12:11:49.704 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
02-01 12:11:49.707 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
02-01 12:11:49.709 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
02-01 12:11:49.711 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
02-01 12:11:49.716 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
02-01 12:11:49.718 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
02-01 12:11:49.720 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
02-01 12:11:49.721 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageViewManager
02-01 12:11:49.722 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageShadowNode
02-01 12:11:49.725 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
02-01 12:11:49.730 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
02-01 12:11:49.732 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
02-01 12:11:49.732 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
02-01 12:11:49.737 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
02-01 12:11:49.742 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
02-01 12:11:49.744 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
02-01 12:11:49.745 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
02-01 12:11:49.747 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
02-01 12:11:49.755 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
02-01 12:11:49.764 17243-17293/com.truckfly.truckfly W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.truckfly.rctgooglemaps.GoogleMapViewManager

@artem-russkikh
Copy link

I upgrade react-native to 0.19.0
Development mode works fine. When I make a release build - app is crashing. Commenting minifyEnabled in andorid/app/build.gradle makes build working

@kristjanmik
Copy link

Same for me, the minify process breaks the prod build

@cosmith
Copy link
Contributor

cosmith commented Feb 2, 2016

So I guess this commit has something to do with it? 57f6cbb

It says The annotation processor is currently not working when building with Gradle.

@lexs could you take a look?

@lexs
Copy link
Contributor

lexs commented Feb 2, 2016

Hey!

The error you're seeing is because the annotation processor is not ran on Gradle builds (as it's not yet supported there), however this means that it will just fall back to the old reflection-based approach.

Do you have a log of the actual crash with stack trace?

@cosmith
Copy link
Contributor

cosmith commented Feb 2, 2016

I don't have any crashes so it's hard to pinpoint the issue, but my custom UI component does not receive calls from the javascript side. It might be a completely separate issue from what the others are experiencing with the crashes...

@lexs
Copy link
Contributor

lexs commented Feb 2, 2016

@cosmith Is it possible for you to test a version where 57f6cbb is reverted? Otherwise is it possible to make a minimal test case that I could dig into?

@kristjanmik
Copy link

It crashes on the generated default project from the cli. Here is a dump:

02-02 11:34:57.216  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
02-02 11:34:57.218  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
02-02 11:34:57.219  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
02-02 11:34:57.220  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
02-02 11:34:57.221  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
02-02 11:34:57.222  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
02-02 11:34:57.222  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
02-02 11:34:57.223  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
02-02 11:34:57.224  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
02-02 11:34:57.228  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
02-02 11:34:57.229  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
02-02 11:34:57.232  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
02-02 11:34:57.235  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
02-02 11:34:57.237  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
02-02 11:34:57.238  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
02-02 11:34:57.240  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
02-02 11:34:57.242  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
02-02 11:34:57.243  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
02-02 11:34:57.246  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
02-02 11:34:57.246  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageViewManager
02-02 11:34:57.249  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextInlineImageShadowNode
02-02 11:34:57.250  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
02-02 11:34:57.251  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
02-02 11:34:57.252  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
02-02 11:34:57.253  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
02-02 11:34:57.257  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
02-02 11:34:57.259  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
02-02 11:34:57.260  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
02-02 11:34:57.261  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
02-02 11:34:57.261  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
02-02 11:34:57.262  6657  6657 W unknown:React: Unable to dispatch keyboard events in JS as the react instance has not been attached
02-02 11:34:57.265  6657  6670 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
02-02 11:34:57.278  5159  5205 I ActivityManager: Displayed com.awesomeproject/.MainActivity: +180ms
02-02 11:34:57.482  6657  6672 E ReactNativeJS: undefined is not an object (evaluating 'h.propTypes.style')
02-02 11:34:57.492  6657  6673 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
02-02 11:34:57.492  6657  6673 E AndroidRuntime: Process: com.awesomeproject, PID: 6657
02-02 11:34:57.492  6657  6673 E AndroidRuntime: com.facebook.react.modules.core.JavascriptException: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:15:9209
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:16:29346
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:16:26956
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:16:20170
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:16:18534
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:16:17342
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: AppRegistry
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:27541
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:12592
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:575
02-02 11:34:57.492  6657  6673 E AndroidRuntime: r
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:304
02-02 11:34:57.492  6657  6673 E AndroidRuntime: n
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     index.android.bundle:1:241
02-02 11:34:57.492  6657  6673 E AndroidRuntime: <unknown>
02-02 11:34:57.492  6657  6673 E AndroidRuntime:     global [email protected]:17:26446
02-02 11:34:57.492  6657  6673 E AndroidRuntime:
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:68)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:56)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:249)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:158)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:58)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:431)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(Native Method)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:185)
02-02 11:34:57.492  6657  6673 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:818)
02-02 11:34:57.494  5159 10900 W ActivityManager:   Force finishing activity com.awesomeproject/.MainActivity
02-02 11:34:57.527  5159  5186 W BroadcastQueue: Skipping deliver [background] BroadcastRecord{5599fc6 u-1 android.net.conn.CONNECTIVITY_CHANGE} to ReceiverList{eb04608 6657 com.awesomeproject/10114/u0 remote:4149fab}: process crashing
02-02 11:34:57.531  6657  6672 E ReactNativeJS: Module AppRegistry is not a registered callable module.

@lopezjurip
Copy link

I'm having the exact same issue

@kristjanmik
Copy link

We have a good discussion going on in #5655

@arunabha
Copy link

@lexs
I too am having a similar issue, the app starts fine, but none of the calls from javascript to set properties for native components seems to be taking effect. I've confirmed this by adding a log statement to a method annotated with '@ReactProp'. The log statement never gets triggered when the corresponding property is set in Javascript.

@cosmith
Copy link
Contributor

cosmith commented Feb 13, 2016

@arunabha the import changed for @ReactProp, you now have to import com.facebook.react.uimanager.annotations.ReactProp; in RN 0.19+

@arunabha
Copy link

@cosmith Yes, I just realized that reading #5649

The fix is fairly easy, but it sort of forces a dependency on 0.19 so all users of the library will have to upgrade. Is there a way of supporting both 0.19 and < 0.19 ?

@mkonicek
Copy link
Contributor

Looks like this has been fixed in #5304 and answered here, closing. Sorry about the breakage.

@patsimon
Copy link

patsimon commented Jan 16, 2017

I'm currently using react-native v 0.40 and am getting the above documented issue.

@Wirg
Copy link

Wirg commented Jan 19, 2017

Same than Patsimon, I ran into that issue when running on react-native 0.40 .

I tried a few of the bug solutions but nothing really worked.

 14942-16141/com.company.project W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
 14942-16141/com.company.project W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
 14942-16141/com.company.project W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
 14942-16141/com.company.project W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
 14942-16141/com.company.project W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
 14942-16145/com.company.project E/ReactNativeJS: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner}).
 14942-16147/com.company.project E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
                                                                  Process: com.company.project, PID: 14942
                                                                  com.facebook.react.common.JavascriptException: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner})., stack:

This only shows on the android project, the ios one works.
So I have got a bunch of those unknown:ViewManagerPropertyUpdater: Could not find generated setter for class, then I have an error stating Objects are not valid as a React child.
Checking those 2 messages, the 2nd one means that I have an issue with my React (render probably ?), but as the iOS part is working, I guess that the error might be due to the previous warnings (maybe ?).

Has anyone else experienced that and has an idea/solution ?

@booboothefool
Copy link

booboothefool commented Jan 20, 2017

Getting this on 0.37.

UPDATE: My issue was just a config issue. #12013

@vdesdoigts
Copy link

Same on RN 0.40

@Wirg
Copy link

Wirg commented Jan 23, 2017

@booboothefool : is this something really specific to you or would you mind sharing what you did/had ?

@edmundito
Copy link

@Wirg I've experienced the same Objects are not valid as React child issue during my upgrade from 0.37 to 0.39. This happens in the Android emulation or the build. When I turn on debug mode it runs normally. I am still looking into what the cause is, but there are not a lot of answers online. Please let me know if you find a solution.

@patsimon
Copy link

I have a found a solution to the problem of finding a mobile cross platform native open source framework that is stable - Nativescript :)

@tomasdelima
Copy link

I had the same issue, and found out the problem: in my JS files I was using performance.now(). As soon as I replaced it for new Date(), I managed to get my code working in the release version

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests