armcha / armcha/Space-Navigation-View
Could not inflate Behavior subclass com.luseen.spacenavigation.SpaceNavigationViewBehavior
- Dominant language
- Java
- Stars
- 2k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
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.
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the layout's app:layout_behavior entry for com.luseen.spacenavigation.SpaceNavigationViewBehavior and inspect how the release build handles that class. Reproduce the release inflation failure and verify that the resulting build can load the behavior without the reported ClassNotFoundException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100