drag-sort-listview icon indicating copy to clipboard operation
drag-sort-listview copied to clipboard

Error inflating layout

Open jaaagman opened this issue 11 years ago • 4 comments

When I am launching my application, I am getting the error:

04-29 10:20:15.655: E/AndroidRuntime(24548): android.view.InflateException: Binary XML file line #2: Error inflating class com.mobeta.android.dslv.DragSortListView

Here is my XML file:

<com.mobeta.android.dslv.DragSortListView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:dslv="http://schemas.android.com/apk/res-auto" android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingTop="7dp" android:paddingBottom="0dp" android:paddingLeft="0dp" android:layout_margin="0dp" android:dividerHeight="5dp" dslv:drag_enabled="true" dslv:collapsed_height="2dp" dslv:drag_scroll_start="0.33" dslv:max_drag_scroll_speed="0.5" dslv:float_alpha="0.6" dslv:slide_shuffle_speed="0.3" dslv:track_drag_sort="false" dslv:use_default_controller="true" dslv:sort_enabled="false" dslv:remove_enabled="true" dslv:remove_mode="flingRemove" android:background="#E5E5E5" />

Does anyone know whats causing the issue? When I attempt to specify res-auto, the project does not compile.

jaaagman avatar Apr 29 '13 17:04 jaaagman

Looks like you're missing a <com.mobeta.android.dslv.DragSortListView on line 2. ;)

bauerca avatar May 03 '13 06:05 bauerca

I have the same error, triggered by

Caused by: java.lang.NoClassDefFoundError: com.mobeta.android.dslv.R$styleable at com.mobeta.android.dslv.DragSortListView.<init>(DragSortListView.java:450)

I checked the source file, but could not find the error. The R class is correctly referencing the styleable object... What could I be missing?

sergiocampama avatar May 10 '13 18:05 sergiocampama

Apparently, this is an issue with the new SDK version.

It can be fixed by setting dex.force.jumbo=true in project.properties

Source: https://github.com/JakeWharton/ActionBarSherlock/issues/639

sergiocampama avatar May 10 '13 18:05 sergiocampama

For me changed multiDexEnabled from true to false solved the problem

rickytribbia avatar Dec 23 '15 16:12 rickytribbia