在猴子测试期间,FlexboxLayoutManager意外出现java.lang.NoSuchMethodError。此错误的可能性非常低。崩溃的原因可能是什么?
执行此代码时:
FlexboxLayoutManager flexboxLayoutManager = new FlexboxLayoutManager(mActivity);
flexboxLayoutManager.setAlignItems(AlignItems.STRETCH);
flexboxLayoutManager.setJustifyContent(JustifyContent.FLEX_START);
这是崩溃报告
java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;)V in class Lcom/google/android/flexbox/FlexboxLayoutManager; or its super classes (declaration of 'com.google.android.flexbox.FlexboxLayoutManager' appears in base.apk)