Android Question Error trying to use SpaceNavigation lib

Discussion in 'Android Questions' started by Dianzoa, May 31, 2019.

  1. Dianzoa

    Dianzoa Active Member Licensed User

    ¨Pasted the log

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Registo conectado a: HUAWEI DRA-LX3
    --------- beginning of crash
    --------- beginning of main
    *** Service (starter) Create ***
    ** Service (starter) Start **
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/design/widget/FloatingActionButton;
    at com.luseen.spacenavigation.SpaceNavigationView.initAndAddViewsToMainView(SpaceNavigationView.java:272)
    at com.luseen.spacenavigation.SpaceNavigationView.onSizeChanged(SpaceNavigationView.java:249)
    at android.view.View.sizeChange(View.java:20046)
    at android.view.View.setFrame(View.java:20007)
    at android.view.View.layout(View.java:19900)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at anywheresoftware.b4a.BALayout.onLayout(BALayout.java:43)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:444)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)
    at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at com.android.internal.policy.DecorView.onLayout(DecorView.java:768)
    at android.view.View.layout(View.java:19905)
    at android.view.ViewGroup.layout(ViewGroup.java:6160)
    at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2652)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2357)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1487)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7199)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:999)
    at android.view.Choreographer.doCallbacks(Choreographer.java:811)
    at android.view.Choreographer.doFrame(Choreographer.java:739)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:985)
    at android.os.Handler.handleCallback(Handler.java:795)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:166)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:450)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.widget.FloatingActionButton" on path: DexPathList[[zip file "/data/app/b4a.example-EeJty79KtBM32crER9XBGA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-EeJty79KtBM32crER9XBGA==/lib/arm, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 45 more
     
  2. DonManfred

    DonManfred Expert Licensed User

    i guess you should add material design support library to your project
     
    Erel and Dianzoa like this.
  3. Dianzoa

    Dianzoa Active Member Licensed User

    Thanks bro! That was it.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice