Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入库运行时crash #15

Closed
YummyLau opened this issue Dec 14, 2019 · 2 comments
Closed

导入库运行时crash #15

YummyLau opened this issue Dec 14, 2019 · 2 comments

Comments

@YummyLau
Copy link

crash log

 android.view.InflateException: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Error inflating class com.heaven7.android.dragflowlayout.DragFlowLayout
    Caused by: android.view.InflateException: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Error inflating class com.heaven7.android.dragflowlayout.DragFlowLayout
    Caused by: java.lang.reflect.InvocationTargetException

看上去像是xml反射失败。
我的布局

   <LinearLayout
        android:id="@+id/dragContainer"
        android:visibility="gone"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.heaven7.android.dragflowlayout.DragFlowLayout
            android:id="@+id/dragLayout"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            app:itemSpacing="5dp"
            app:lineSpacing="5dp"
            android:layout_weight="1">
        </com.heaven7.android.dragflowlayout.DragFlowLayout>

    </LinearLayout>

目前项目是androidX。

@LightSun
Copy link
Owner

抱歉。才看到。稍后更新个android x的版本

@LightSun
Copy link
Owner

LightSun commented Mar 2, 2020

已更新androidx

@LightSun LightSun closed this as completed Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants