Android Question Log Error Notification Builder

Discussion in 'Android Questions' started by imgsimonebiliato, Apr 5, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    please, can you help me to understand this compile error?
    Code:
    ** Activity (main) Resume **
    ** 
    Service (pushservice) Create **
    ** 
    Service (pushservice) Start **
    ** 
    Service (pushservice) Start **
    ** 
    Service (pushservice) Start **
    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationManagerCompat;
        at barxdroid.NotificationBuilder.NotificationBuilder.Notify(NotificationBuilder.java:
    512)
        at simone.b.fortitudovedelago.pushservice._messagearrived(pushservice.java:
    211)
        at simone.b.fortitudovedelago.pushservice._service_start(pushservice.java:
    287)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:
    372)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    174)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    158)
        at simone.b.fortitudovedelago.pushservice.handleStart(pushservice.java:
    68)
        at simone.b.fortitudovedelago.pushservice.onStartCommand(pushservice.java:
    53)
        at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:
    2894)
        at android.app.ActivityThread.access$
    2100(ActivityThread.java:151)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
    1401)
        at android.os.Handler.dispatchMessage(Handler.java:
    102)
        at android.os.Looper.loop(Looper.java:
    135)
        at android.app.ActivityThread.main(ActivityThread.java:
    5254)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:
    372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
    903)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    698)
    Caused by: java.lang.ClassNotFoundException: Didn
    't find class "android.support.v4.app.NotificationManagerCompat" on path: DexPathList[[zip file "/data/app/simone.b.fortitudovedelago-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    511)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    469)
        ... 
    19 more
        Suppressed: java.lang.ClassNotFoundException: android.support.v4.app.NotificationManagerCompat
            at java.lang.Class.classForName(Native Method)
            at java.lang.BootClassLoader.findClass(ClassLoader.java:
    781)
            at java.lang.BootClassLoader.loadClass(ClassLoader.java:
    841)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:
    504)
            ... 
    20 more
        Caused by: java.lang.NoClassDefFoundError: Class 
    not found using the boot class loader; no stack available
     
  2. DonManfred

    DonManfred Expert Licensed User

    Without knowing what exactly you are doing there and how it is hartd to give advices.

    When did you learn to create Help-request giving enough informations. Maybe a small example project which shows the problem, maybe a DESCRIPTION what you are doing there?

    "I go an error", "This is message", "HELP" is not a good way to ask for help!
     
    thedesolatesoul likes this.
  3. barx

    barx Well-Known Member Licensed User

    Make sure you have an up to date v4 copied into your additional libraries and that you DON'T have another version in the standard b4a lib directory. if that still doesn't sort it. Try copying over the v13 too. Some people have said this sorts this sort of issue. No idea why though as the standard dependancy is v4
     
    thedesolatesoul likes this.
  4. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

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