Could not inflate Behavior subclass com.luseen.spacenavigation.SpaceNavigationViewBehavior
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 I have also having the same issue right now. Have you found any solution for it ?
@kevivforever I have also having the same issue right now. Have you found any solution for it ?
I have got the solution just make SpaceNavigationViewBehavior class public.