SurfaceFlinger:无法在图层父级(无父级)中找到图层FullScreenFragmentActivity

Ral*_*kum 27 android android-fragments android-fullscreen bottom-sheet

我有BottomSheetFragmentActivity导致在Android 8.0设备此崩溃.我正在寻找一种解决方法,而不是将targetSDK设置回26.

我解释了这里所描述的:但这反过来导致了

SurfaceFlinger:无法在图层父级(无父级)中找到图层BottomSheetFragmentActivity#0.

有解决方案吗?

小智 1

尝试 :

Clean Project -> Rebuild Project
Run Code Online (Sandbox Code Playgroud)

或者如果它不起作用

Invalidate Caches and Restart
Run Code Online (Sandbox Code Playgroud)

为我工作。希望能帮助到你。