Android应用程序崩溃,在Logcat中找到原因

时间:2018-12-04 10:20:01

标签: android react-native react-native-android react-native-navigation

我要在此处发布帮助以查找导致React Native Android应用崩溃的问题。该应用程序使用React Native Navigation。我无法弄清楚是哪个错误导致应用程序崩溃。它开始加载主屏幕时崩溃。

自第一条评论以来,我删除了MultiDex.install,但仍然崩溃。

更新:问题根本不是崩溃,而是一些较旧的C ++代码的混合,这些代码在MainActivity停止时退出了应用程序。感谢所有的提示。

很抱歉发布长日志输出!

2018-12-04 10:06:16.830 4603-4603/com.acme.myapp V/fb-UnpackingSoSource: locked dso store /data/user/0/com.acme.myapp/lib-main
2018-12-04 10:06:16.831 4603-4603/com.acme.myapp I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.acme.myapp/lib-main
2018-12-04 10:06:16.831 4603-4603/com.acme.myapp V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.acme.myapp/lib-main
2018-12-04 10:06:16.856 4603-4603/com.acme.myapp D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-12-04 10:06:16.889 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.createReactContextInBackground()
2018-12-04 10:06:16.889 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
2018-12-04 10:06:16.893 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()
2018-12-04 10:06:16.895 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.recreateReactContextInBackground()
2018-12-04 10:06:16.896 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
2018-12-04 10:06:16.926 1363-1872/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2018-12-04 10:06:16.931 4603-4685/com.acme.myapp D/OpenGLRenderer: HWUI GL Pipeline
2018-12-04 10:06:17.883 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:17.898 1354-1354/? I/chatty: uid=1000(system) allocator@2.0-s identical 1 line
2018-12-04 10:06:17.913 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:19.406 4603-4682/com.acme.myapp I/zygote: Thread[16,tid=4682,Native,Thread*=0xa09a4400,peer=0x131ec760,"Thread-2"] recursive attempt to load library "/data/app/com.acme.myapp-JUTtTZPIgePtTXCNsU1hrw==/lib/x86/libfb.so"
2018-12-04 10:06:19.410 4603-4682/com.acme.myapp D/ReactNative: ReactInstanceManager.createReactContext()
2018-12-04 10:06:19.414 4603-4682/com.acme.myapp D/SayItReactPackage: createViewManagers
2018-12-04 10:06:19.706 4603-4685/com.acme.myapp I/OpenGLRenderer: Initialized EGL, version 1.4
2018-12-04 10:06:19.706 4603-4685/com.acme.myapp D/OpenGLRenderer: Swap behavior 1
2018-12-04 10:06:19.706 4603-4685/com.acme.myapp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2018-12-04 10:06:19.706 4603-4685/com.acme.myapp D/OpenGLRenderer: Swap behavior 0
2018-12-04 10:06:19.708 4603-4685/com.acme.myapp D/EGL_emulation: eglCreateContext: 0xa3486a40: maj 2 min 0 rcv 2
2018-12-04 10:06:19.958 4603-4682/com.acme.myapp E/UCI4C: u_getDataDirectory()=/data/user/0/com.acme.myapp/files/icu
2018-12-04 10:06:19.991 4603-4685/com.acme.myapp D/EGL_emulation: eglMakeCurrent: 0xa3486a40: ver 2 0 (tinfo 0xa34836a0)
2018-12-04 10:06:19.993 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.acme.myapp.RCTWordViewManager
2018-12-04 10:06:20.009 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
2018-12-04 10:06:20.273 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager
2018-12-04 10:06:20.275 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.GroupShadowNode
2018-12-04 10:06:20.397 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.PathShadowNode
2018-12-04 10:06:20.399 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.CircleShadowNode
2018-12-04 10:06:20.400 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.EllipseShadowNode
2018-12-04 10:06:20.554 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.LineShadowNode
2018-12-04 10:06:20.559 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RectShadowNode
2018-12-04 10:06:20.567 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.TextShadowNode
2018-12-04 10:06:20.574 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.TSpanShadowNode
2018-12-04 10:06:20.581 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.TextPathShadowNode
2018-12-04 10:06:20.587 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.ImageShadowNode
2018-12-04 10:06:20.594 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.ClipPathShadowNode
2018-12-04 10:06:20.597 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.DefsShadowNode
2018-12-04 10:06:20.597 4603-4685/com.acme.myapp D/EGL_emulation: eglMakeCurrent: 0xa3486a40: ver 2 0 (tinfo 0xa34836a0)
2018-12-04 10:06:20.604 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.UseShadowNode
2018-12-04 10:06:20.609 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.SymbolShadowNode
2018-12-04 10:06:20.615 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.LinearGradientShadowNode
2018-12-04 10:06:20.621 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RadialGradientShadowNode
2018-12-04 10:06:20.626 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.SvgViewManager
2018-12-04 10:06:20.627 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.SvgViewShadowNode
2018-12-04 10:06:20.632 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.inprogress.reactnativeyoutube.YouTubeManager
2018-12-04 10:06:20.638 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.BV.LinearGradient.LinearGradientManager
2018-12-04 10:06:20.642 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
2018-12-04 10:06:20.644 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
2018-12-04 10:06:20.645 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
2018-12-04 10:06:20.646 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
2018-12-04 10:06:20.648 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
2018-12-04 10:06:20.649 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
2018-12-04 10:06:20.649 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager
2018-12-04 10:06:20.655 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
2018-12-04 10:06:20.659 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
2018-12-04 10:06:20.664 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
2018-12-04 10:06:20.666 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
2018-12-04 10:06:20.668 1507-1528/? I/ActivityManager: Displayed com.acme.myapp/.MainActivity: +15s858ms
2018-12-04 10:06:20.670 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
2018-12-04 10:06:20.672 1507-1520/? E/memtrack: Couldn't load memtrack module
2018-12-04 10:06:20.672 1507-1520/? W/android.os.Debug: failed to get memory consumption info: -1
2018-12-04 10:06:20.673 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
2018-12-04 10:06:20.675 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
2018-12-04 10:06:20.676 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
2018-12-04 10:06:20.680 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
2018-12-04 10:06:20.685 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
2018-12-04 10:06:20.687 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
2018-12-04 10:06:20.689 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
2018-12-04 10:06:20.689 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
2018-12-04 10:06:20.705 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
2018-12-04 10:06:20.712 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
2018-12-04 10:06:20.716 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
2018-12-04 10:06:20.716 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
2018-12-04 10:06:20.719 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
2018-12-04 10:06:20.720 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
2018-12-04 10:06:20.723 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
2018-12-04 10:06:20.728 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
2018-12-04 10:06:20.733 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
2018-12-04 10:06:20.733 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
2018-12-04 10:06:20.734 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
2018-12-04 10:06:20.735 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
2018-12-04 10:06:20.742 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
2018-12-04 10:06:20.749 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
2018-12-04 10:06:20.752 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
2018-12-04 10:06:20.753 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
2018-12-04 10:06:20.761 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
2018-12-04 10:06:20.767 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
2018-12-04 10:06:20.768 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
2018-12-04 10:06:20.768 4603-4682/com.acme.myapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativenavigation.views.managers.SharedElementTransitionManager
2018-12-04 10:06:20.776 4603-4682/com.acme.myapp D/SayItReactPackage: createNativeModules
2018-12-04 10:06:20.780 1363-1363/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
2018-12-04 10:06:20.798 2237-2237/? I/zygote: Deoptimizing boolean com.google.android.apps.gsa.shared.util.BitFlags.m(long, long) due to JIT inline cache
2018-12-04 10:06:20.800 4603-4682/com.acme.myapp D/ReactNative: Initializing React Xplat Bridge.
2018-12-04 10:06:20.810 4603-4682/com.acme.myapp D/ReactNative: Initializing React Xplat Bridge before initializeBridge
2018-12-04 10:06:20.819 2237-2237/? W/SearchService: Abort, client detached.
2018-12-04 10:06:20.822 4603-4682/com.acme.myapp D/ReactNative: Initializing React Xplat Bridge after initializeBridge
2018-12-04 10:06:20.823 4603-4682/com.acme.myapp D/ReactNative: CatalystInstanceImpl.runJSBundle()
2018-12-04 10:06:20.827 4603-4696/com.acme.myapp D/ReactNative: ReactInstanceManager.setupReactContext()
2018-12-04 10:06:20.828 4603-4696/com.acme.myapp D/ReactNative: CatalystInstanceImpl.initialize()
2018-12-04 10:06:20.829 4603-4696/com.acme.myapp W/unknown:ReactNative: Packager connection already open, nooping.
2018-12-04 10:06:21.115 4603-4696/com.acme.myapp I/WebViewFactory: Loading com.android.chrome version 58.0.3029.125 (code 303012512)
2018-12-04 10:06:21.776 4603-4696/com.acme.myapp I/cr_LibraryLoader: Time to load native libraries: 13 ms (timestamps 4161-4174)
2018-12-04 10:06:21.800 4603-4696/com.acme.myapp I/chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0
2018-12-04 10:06:21.801 4603-4696/com.acme.myapp I/cr_LibraryLoader: Expected native library version number "58.0.3029.125", actual native library version number "58.0.3029.125"
2018-12-04 10:06:21.801 4603-4608/com.acme.myapp I/zygote: Do partial code cache collection, code=30KB, data=23KB
2018-12-04 10:06:21.803 4603-4608/com.acme.myapp I/zygote: After code cache collection, code=30KB, data=23KB
2018-12-04 10:06:21.803 4603-4608/com.acme.myapp I/zygote: Increasing code cache capacity to 128KB
2018-12-04 10:06:22.355 4603-4695/com.acme.myapp E/BluetoothAdapter: Bluetooth binder is null
2018-12-04 10:06:22.355 4603-4695/com.acme.myapp W/InstanceID: Instance ID SDK is deprecated, com.acme.myapp should update to use Firebase Instance ID
2018-12-04 10:06:22.829 1507-1824/? I/ActivityManager: START u0 {act=android.intent.action.VIEW flg=0x10008000 cmp=com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity (has extras)} from uid 10082
2018-12-04 10:06:22.862 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2018-12-04 10:06:23.255 4603-4608/com.acme.myapp I/zygote: Do partial code cache collection, code=60KB, data=43KB
2018-12-04 10:06:23.261 4603-4608/com.acme.myapp I/zygote: After code cache collection, code=60KB, data=43KB
2018-12-04 10:06:23.261 4603-4608/com.acme.myapp I/zygote: Increasing code cache capacity to 256KB
2018-12-04 10:06:23.332 1507-1521/? W/ActivityManager: Activity pause timeout for ActivityRecord{780009d u0 com.acme.myapp/.MainActivity t8 f}
2018-12-04 10:06:23.857 4603-4608/com.acme.myapp I/zygote: Do full code cache collection, code=122KB, data=81KB
2018-12-04 10:06:23.858 4603-4608/com.acme.myapp I/zygote: After code cache collection, code=103KB, data=58KB
2018-12-04 10:06:23.919 4603-4608/com.acme.myapp I/zygote: Do partial code cache collection, code=107KB, data=68KB
2018-12-04 10:06:23.920 4603-4608/com.acme.myapp I/zygote: After code cache collection, code=107KB, data=68KB
2018-12-04 10:06:23.921 4603-4608/com.acme.myapp I/zygote: Increasing code cache capacity to 512KB
2018-12-04 10:06:24.085 4603-4603/com.acme.myapp W/AHBottomNavigation: The items list should have at least 3 items
2018-12-04 10:06:24.095 4603-4603/com.acme.myapp I/chatty: uid=10082(u0_a82) com.acme.myapp identical 2 lines
2018-12-04 10:06:24.096 4603-4603/com.acme.myapp W/AHBottomNavigation: The items list should have at least 3 items
2018-12-04 10:06:24.145 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.attachRootViewToInstance()
2018-12-04 10:06:24.186 4603-4603/com.acme.myapp I/chatty: uid=10082(u0_a82) com.acme.myapp identical 3 lines
2018-12-04 10:06:24.200 4603-4603/com.acme.myapp D/ReactNative: ReactInstanceManager.attachRootViewToInstance()
2018-12-04 10:06:24.222 4603-4603/com.acme.myapp D/MainApplication: onActivityStarted
2018-12-04 10:06:24.225 4603-4603/com.acme.myapp W/unknown:ReactNative: Packager connection already open, nooping.
2018-12-04 10:06:24.231 4603-4603/com.acme.myapp D/MainApplication: onActivityResumed
2018-12-04 10:06:24.242 4603-4608/com.acme.myapp I/zygote: JIT allocated 71KB for compiled code of void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
2018-12-04 10:06:24.242 4603-4608/com.acme.myapp I/zygote: Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
2018-12-04 10:06:24.300 4603-4608/com.acme.myapp I/zygote: Do full code cache collection, code=208KB, data=139KB
2018-12-04 10:06:24.305 4603-4608/com.acme.myapp I/zygote: After code cache collection, code=166KB, data=91KB
2018-12-04 10:06:24.430 4603-4685/com.acme.myapp D/EGL_emulation: eglMakeCurrent: 0xa3486a40: ver 2 0 (tinfo 0xa34836a0)
2018-12-04 10:06:24.539 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2018-12-04 10:06:24.734 1507-1528/? I/ActivityManager: Displayed com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity: +1s400ms
2018-12-04 10:06:24.810 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2018-12-04 10:06:24.902 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2018-12-04 10:06:24.997 4603-4603/com.acme.myapp I/zygote: System.exit called, status: 0
2018-12-04 10:06:24.997 4603-4603/com.acme.myapp I/AndroidRuntime: VM exiting with result code 0, cleanup skipped.
2018-12-04 10:06:25.043 1507-1744/? I/ActivityManager: Process com.acme.myapp (pid 4603) has died: fore TOP 
2018-12-04 10:06:25.043 1507-1744/? W/ActivityManager: Force removing ActivityRecord{19d4434 u0 com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity t8}: app died, no saved state
2018-12-04 10:06:25.043 1507-1650/? I/WindowManager: WIN DEATH: Window{3053e6e u0 com.acme.myapp/com.acme.myapp.MainActivity}
2018-12-04 10:06:25.046 1507-1565/? W/InputDispatcher: channel '8c246a6 com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2018-12-04 10:06:25.046 1507-1565/? E/InputDispatcher: channel '8c246a6 com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2018-12-04 10:06:25.053 1507-2191/? I/WindowManager: WIN DEATH: Window{8c246a6 u0 com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity}
2018-12-04 10:06:25.053 1507-2191/? W/InputDispatcher: Attempted to unregister already unregistered input channel '8c246a6 com.acme.myapp/com.reactnativenavigation.controllers.NavigationActivity (server)'
2018-12-04 10:06:25.067 1507-1528/? W/ActivityManager: setHasOverlayUi called on unknown pid: 4603
2018-12-04 10:06:25.098 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.103 2200-2339/? I/zygote: Deoptimizing int android.support.v4.a.k.aqf(java.lang.Object) due to JIT inline cache
2018-12-04 10:06:25.180 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.204 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.260 1363-1363/? D/SurfaceFlinger: duplicate layer name: changing com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity to com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity#1
2018-12-04 10:06:25.266 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.386 1354-1354/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 120 ms
2018-12-04 10:06:25.411 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.411 2237-2480/? D/EGL_emulation: eglMakeCurrent: 0xa34863e0: ver 2 0 (tinfo 0xa3483b30)
2018-12-04 10:06:25.506 1354-1354/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
2018-12-04 10:06:25.546 2200-2357/? D/EGL_emulation: eglMakeCurrent: 0xac9a1aa0: ver 2 0 (tinfo 0xac9ecf00)
2018-12-04 10:06:25.548 2237-2237/? I/zygote: Deoptimizing void com.google.android.apps.gsa.search.core.service.worker.a.a.a(com.google.android.apps.gsa.search.core.state.qc) due to JIT inline cache
2018-12-04 10:06:25.565 2237-2237/? W/SessionLifecycleManager: Handover failed. Creating new session controller.
2018-12-04 10:06:25.566 2237-2237/? I/zygote: Deoptimizing com.google.common.collect.dk com.google.common.collect.dk.c(int, java.lang.Object[]) due to JIT inline cache
2018-12-04 10:06:25.572 2237-2237/? I/OptInState: There is a new client and it does not support opt-in. Dropping request.
2018-12-04 10:06:25.605 2237-2237/? I/MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]]
2018-12-04 10:06:25.605 2237-2237/? I/MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
2018-12-04 10:06:25.606 2237-2237/? I/AudioController: Using mInputStreamFactoryBuilder
2018-12-04 10:06:25.611 2237-2419/? I/MicroRecognitionRunner: Starting detection.
2018-12-04 10:06:25.611 2237-2408/? I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.614 2237-2237/? I/MicroDetectionWorker: onReady
2018-12-04 10:06:25.614 2237-2242/? I/zygote: Do partial code cache collection, code=500KB, data=319KB
2018-12-04 10:06:25.616 2237-2242/? I/zygote: After code cache collection, code=492KB, data=315KB
2018-12-04 10:06:25.616 2237-2242/? I/zygote: Increasing code cache capacity to 2MB
2018-12-04 10:06:25.616 1368-4721/? I/AudioFlinger: AudioFlinger's thread 0xa8d83780 tid=4721 ready to run
2018-12-04 10:06:25.628 2237-2408/? I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.628 2237-2408/? E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
2018-12-04 10:06:25.633 2237-2408/? I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.634 2237-2419/? I/MicroRecognitionRunner: Detection finished
2018-12-04 10:06:25.634 2237-2419/? W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
2018-12-04 10:06:25.635 2237-2585/? I/MicroRecognitionRunner: Stopping hotword detection.
2018-12-04 10:06:25.636 2237-2419/? W/ErrorProcessor: onFatalError, processing error from engine(4)
    com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream
        at com.google.android.apps.gsa.staticplugins.recognizer.j.a.a(SourceFile:28)
        at com.google.android.apps.gsa.staticplugins.recognizer.j.b.run(SourceFile:15)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14)
        at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
        at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
        at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6)
     Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
        at com.google.android.apps.gsa.speech.audio.Tee.f(SourceFile:103)
        at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2)
        at java.io.InputStream.read(InputStream.java:101)
        at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:18)
        at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14) 
        at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 
        at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
        at java.lang.Thread.run(Thread.java:764) 
        at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6) 
2018-12-04 10:06:25.636 2237-2419/? I/AudioController: internalShutdown
2018-12-04 10:06:25.645 2237-2237/? I/MicroDetectionWorker: onReady
2018-12-04 10:06:25.645 2237-2237/? I/MicroDetector: Keeping mic open: false
2018-12-04 10:06:25.645 2237-2439/? I/DeviceStateChecker: DeviceStateChecker cancelled
2018-12-04 10:06:25.646 2237-2237/? I/MicroDetectionWorker: #onError(false)
2018-12-04 10:06:26.061 2200-2357/? W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...

2 个答案:

答案 0 :(得分:3)

两个问题。

1。麦克风

该应用正在寻找麦克风。

2018-12-04 10:06:25.605 2237-2237/? I/MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]]
2018-12-04 10:06:25.605 2237-2237/? I/MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
2018-12-04 10:06:25.606 2237-2237/? I/AudioController: Using mInputStreamFactoryBuilder
2018-12-04 10:06:25.611 2237-2419/? I/MicroRecognitionRunner: Starting detection.
2018-12-04 10:06:25.611 2237-2408/? I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.614 2237-2237/? I/MicroDetectionWorker: onReady
2018-12-04 10:06:25.614 2237-2242/? I/zygote: Do partial code cache collection, code=500KB, data=319KB
2018-12-04 10:06:25.616 2237-2242/? I/zygote: After code cache collection, code=492KB, data=315KB
2018-12-04 10:06:25.616 2237-2242/? I/zygote: Increasing code cache capacity to 2MB
2018-12-04 10:06:25.616 1368-4721/? I/AudioFlinger: AudioFlinger's thread 0xa8d83780 tid=4721 ready to run

该应用正在尝试从麦克风获取输入流,但失败。

2018-12-04 10:06:25.628 2237-2408/? I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.628 2237-2408/? E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded

它关闭输入流。

2018-12-04 10:06:25.633 2237-2408/? I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c@68bc2a7
2018-12-04 10:06:25.634 2237-2419/? I/MicroRecognitionRunner: Detection finished

但是它无法从流中读取(因为没有)。

2018-12-04 10:06:25.634 2237-2419/? W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
2018-12-04 10:06:25.635 2237-2585/? I/MicroRecognitionRunner: Stopping hotword detection.
2018-12-04 10:06:25.636 2237-2419/? W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream

您需要对麦克风进行错误处理。检查其中是否有一个已启用,以确保该应用不会崩溃。特别是对于仿真器,但如果将应用程序部署到真实设备上时未正确处理权限,它也不会崩溃。在模拟器和真实设备上进行测试。

这些中的更多提示:

GsaIOException Buffer overflow, no available space

Looping Error on Android Emulator

确保包含permission.RECORD_AUDIO

<uses-permission android:name="android.permission.RECORD_AUDIO" />

2。 Android Could not find generated setter for class com.facebook.react.views #6692

在所有应用依赖项中确保google play services versions match

  

就我而言,我通过在导入的模块之间使用相同的Google Play服务版本来解决此问题。
  就我而言,有2个模块正在使用Google Play服务。

     
      
  1. react-native-maps模块正在使用com.google.android.gms:play-services-maps: 10.2.4
  2.   
  3. 背景定位模块正在使用com.google.android.gms:play-services-location: 11.0.2
      因此,我将 10.2.4 更改为 11.0.2
      您可以在依赖项{}
  4. 下的build.gradle文件中找到此文件   

确保您使用的是React Native v0.53.0 or newer

将以下内容添加到your build gradle

renderscriptTargetApi 21
renderscriptSupportModeEnabled true

答案 1 :(得分:2)

日志猫在ReactNative: Initializing React Xplat Bridge.后开始抱怨

因此,这可能与ProGuard相关(以防仅发行版本受到影响);

找到了这个issue,建议替换为:

-keep,includedescriptorclasses class com.facebook.react.cxxbridge.ModuleRegistryHolder { *; }
-keep,includedescriptorclasses class com.facebook.react.cxxbridge.CatalystInstanceImpl { *; }
-keep,includedescriptorclasses class com.facebook.react.cxxbridge.JavaScriptExecutor { *; }

具有:

-keep,includedescriptorclasses class com.facebook.react.bridge.CatalystInstanceImpl { *; }
-keep,includedescriptorclasses class com.facebook.react.bridge.JavaScriptExecutor { *; }