Space-Navigation-View icon indicating copy to clipboard operation
Space-Navigation-View copied to clipboard

Could not inflate Behavior subclass com.luseen.spacenavigation.SpaceNavigationViewBehavior

Open kevivforever opened this issue 7 years ago • 3 comments

I added recyclerview scroll behavior in spacenavigationViewbehavior. It is working fine in debug mode. But in release mode it is throwing this error on inflation.

<com.luseen.spacenavigation.SpaceNavigationView android:id="@+id/space" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" app:space_background_color="@color/colorPrimary" app:active_item_color="@color/colorTextPrimary" app:inactive_item_color="@color/colorWhite" app:centre_button_color="@color/colorAccent" app:centre_button_icon="@drawable/ic_camera_white_24dp" app:inactive_centre_button_icon_color="@color/colorWhite" app:layout_behavior="com.luseen.spacenavigation.SpaceNavigationViewBehavior" />

Caused by android.view.InflateException Binary XML file line #40: Could not inflate Behavior subclass com.luseen.spacenavigation.SpaceNavigationViewBehavior

Caused by java.lang.RuntimeException Could not inflate Behavior subclass com.luseen.spacenavigation.SpaceNavigationViewBehavior android.support.design.widget.CoordinatorLayout.parseBehavior

Caused by java.lang.ClassNotFoundException Didn't find class "com.luseen.spacenavigation.SpaceNavigationViewBehavior" on path: DexPathList[[zip file "/data/app/com.example.dev-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.dev-1/lib/arm, /data/app/com.example.dev-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]

Is there any progaurd I need to add. What am I missing here?

kevivforever avatar Apr 22 '18 08:04 kevivforever

@kevivforever I have also having the same issue right now. Have you found any solution for it ?

vishalroygeek avatar Jan 30 '19 14:01 vishalroygeek

@kevivforever I have also having the same issue right now. Have you found any solution for it ?

aloksinghtalentedge avatar Feb 27 '19 10:02 aloksinghtalentedge

I have got the solution just make SpaceNavigationViewBehavior class public.

aloksinghtalentedge avatar Mar 08 '19 09:03 aloksinghtalentedge