@
mumuy 不好意思啊,没描述清楚,我是 nexus 6 的手机,系统是原生的 6.0.1 ,系统语言是英语
logcat 报错是这个
--------- beginning of crash
09-26 15:15:30.010 31480-31480/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.demo, PID: 31480
java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:5334)
at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:5263)
at android.view.ViewGroup$ViewLocationHolder.init(ViewGroup.java:7730)
at android.view.ViewGroup$ViewLocationHolder.obtain(ViewGroup.java:7664)
at android.view.ViewGroup$ChildListForAccessibility.init(ViewGroup.java:7599)
at android.view.ViewGroup$ChildListForAccessibility.obtain(ViewGroup.java:7567)
at android.view.ViewGroup.addChildrenForAccessibility(ViewGroup.java:1927)
at android.view.ViewGroup.addChildrenForAccessibility(ViewGroup.java:1936)
at android.view.ViewGroup.onInitializeAccessibilityNodeInfoInternal(ViewGroup.java:2978)
at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6084)
at android.view.View.createAccessibilityNodeInfoInternal(View.java:6043)
at android.view.View.createAccessibilityNodeInfo(View.java:6028)
at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145)
at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119)
at android.view.View.onInitializeAccessibilityEventInternal(View.java:5980)
at android.view.View.onInitializeAccessibilityEvent(View.java:5968)
at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5833)
at android.view.View.sendAccessibilityEventUnchecked(View.java:5818)
at android.view.ViewRootImpl$
SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:7154)
at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:7180)
at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6294)
at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6473)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3001)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3001)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3001)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3001)
at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8806)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4370)
at android.view.ViewGroup.addView(ViewGroup.java:4145)
at android.view.ViewGroup.addView(ViewGroup.java:4086)
at com.facebook.react.views.view.ReactViewManager.addView(ReactViewManager.java:196)
at com.facebook.react.views.view.ReactViewManager.addView(ReactViewManager.java:39)
at com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:366)
at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:175)
at com.facebook.react.uimanager.UIViewOperationQueue$
2.run(UIViewOperationQueue.java:740)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:804)
at com.facebook.react.uimanager.GuardedChoreographerFrameCallback.doFrame(GuardedChoreographerFrameCallback.java:32)
at com.facebook.react.uimanager.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:125)
at android.view.Choreographer$
CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$
FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$
MethodAndArgsCaller.run(ZygoteInit.java:726)
at
com.android.internal.os.ZygoteInit.ma --------- beginning of system