Android Question B4XDrawer not working after update

Discussion in 'Android Questions' started by Paolo Trevisiol, Jul 15, 2019.

  1. Paolo Trevisiol

    Paolo Trevisiol Member Licensed User

  2. DonManfred

    DonManfred Expert Licensed User

    With WHICH Error??????
     
  3. Paolo Trevisiol

    Paolo Trevisiol Member Licensed User

    *** Service (starter) Create ***
    ** Service (starter) Start **
    ** Activity (main) Create, isFirst = true **
    Error occurred on line: 217 (B4XDrawer)
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:292)
    at b4a.example.main._activity_create(main.java:391)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.example.main.afterFirstLayout(main.java:104)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    ... 19 more
    Caused by: java.lang.NoClassDefFoundError: de.amberhome.objects.internal.InternalToolbar
    at de.amberhome.objects.appcompat.ACToolbarLightWrapper.innerInitialize(ACToolbarLightWrapper.java:28)
    at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:67)
    at de.amberhome.objects.appcompat.ACToolBarWrapper.Initialize(ACToolBarWrapper.java:66)
    at de.amberhome.objects.appcompat.ACToolBarWrapper._initialize(ACToolBarWrapper.java:147)
    ... 22 more
     
  4. Paolo Trevisiol

    Paolo Trevisiol Member Licensed User

    Downgrade to B4A 9.01.2, it works!
     
  5. DonManfred

    DonManfred Expert Licensed User

  6. Erel

    Erel Administrator Staff Member Licensed User

    Works fine here. Are you using AppCompat v4.00?
     
  7. DonManfred

    DonManfred Expert Licensed User

    I am using AppCompat 4.00.
    I got the same error when running the example.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. DonManfred

    DonManfred Expert Licensed User

    yes
    yes. Just ran the example

     
  10. Rubsanpe

    Rubsanpe Member Licensed User

    Hi, I'm using B4XDrawer in my application and I don't have any problems after upgrading to 9.30 and using Jetifier with all my libraries.

    I just downloaded the example again and here it works well.

    Rubén
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Might be related to the device Android version. @DonManfred which version are you using?
     
  12. Rubsanpe

    Rubsanpe Member Licensed User

    Hi. I just tested Android versions 4.4, 5.1 and 9. Maybe it could be a problem updating the SDK? I have it completely updated.

    Rubén
     
    Erel likes this.
  13. Peter Simpson

    Peter Simpson Expert Licensed User

    B4A 9.30
    OpenJava 11
    AppCompat 4.00
    Android 10

    Works perfect on my AndroidX B4A developed app that's on my phone, no issues whatsoever here...
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload the compiled APK of the AppCompat example (in release mode)?
     
  15. DonManfred

    DonManfred Expert Licensed User

  16. DonManfred

    DonManfred Expert Licensed User

    I tried it on my Samsung Note8 running Android 9.0
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    It looks like you are using an unjetified version of AppCompat.

    My guess is that there is a copy of AppCompat.jar or .aar in your internal libraries folder.
     
    Peter Simpson likes this.
  18. DonManfred

    DonManfred Expert Licensed User

    No, the is no such file.

    I just redownloaded Appcompat v4.0 and added them to the additional libs folder.

    And in Additional libs are only the three provided files from the AppCompat Thread. V4.0

    from the AppCompat.xml
    [​IMG]

    Jetifier does not find anything to Jetify.
     
  19. techknight

    techknight Well-Known Member Licensed User

    Do I see a period in your folders? Get rid of that and try again. Windows hates weird characters like that.
     
  20. DonManfred

    DonManfred Expert Licensed User

    Period? ->~<-? No. the full path is E:\B4X.Additionallibs\B4A
     
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