将布局xml文件中的layout_behavior属性移动到布局的ConstraintLayout标签内。例如:
注意:@string/appbar_scrolling_view_behavior对应的是CoordinatorLayout的行为。如果ConstraintLayout不在CoordinatorLayout中,那么应该使用@string/bottom_sheet_behavior。如果在其他布局中使用此属性,应该使用相应的行为名称。
上一篇:编译失败:Task :react-native-screens:compileDebugJavaWithJavac FAILED
下一篇:编译失败:无法编译 ./node_modules/@material-ui/core/ButtonBase/ButtonBase.js。