B4A Library DesignSupport - Additional Material Design components

Discussion in 'Additional libraries, classes and official updates' started by corwin42, Oct 1, 2015.

  1. AscySoft

    AscySoft Active Member Licensed User

    Hi all. I have this error when compile + run your example
    Caused by: java.lang.NoSuchMethodError: No virtual method addOnTabSelectedListener(Landroid/support/design/widget/TabLayout$OnTabSelectedListener;)V in class Landroid/support/design/widget/TabLayout; or its super classes (declaration of 'android.support.design.widget.TabLayout' appears in /data/app/example.tablayout.fixedtabsicon-e7CwkjBxWIm3lh3PiI3hrg==/base.apk)
    at de.amberhome.objects.TabLayoutWrapper.innerInitialize(TabLayoutWrapper.java:63)
    at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:67)
    at de.amberhome.objects.TabLayoutWrapper.Initialize(TabLayoutWrapper.java:52)
    at de.amberhome.objects.TabLayoutWrapper._initialize(TabLayoutWrapper.java:90)
    I dont' want to ask anithing from @corwin42 ,I know for sure that google updated AIP are causing this error (see this thread for more infos).
    I just want to ask Corvin if is better for me to switch to TabStripViewPager solution instead DesignSupportLib that is not supported right now in API 28.0. It seems that only Application built with aapt will cause this problem.
    Last edited: Oct 3, 2018
  2. corwin42

    corwin42 Expert Licensed User

    It seems that google messed up something with the design-support dependencies.

    I can confirm that I have this error, too. Currently I don't know of a fix for it.
    Peter Simpson likes this.
  3. Lello1964

    Lello1964 Active Member Licensed User

    I have updated to Android-28 sdk and cannot complie.
    Have this error.

    How can i do ???

    Attached Files:

  4. Roberto P.

    Roberto P. Well-Known Member Licensed User

    I just updated sdk and it appeared error:

    did you find the solution? Do you have any advice to give?

    I'm blocked!

    thank you
  5. AscySoft

    AscySoft Active Member Licensed User

    Last edited: Oct 22, 2018
  6. Erel

    Erel Administrator Staff Member Licensed User

    There are good alternative solutions that you can try. For example TabStripViewPager.
    Myr0n likes this.
  7. jimmyF

    jimmyF Active Member Licensed User

    I solved the update to Android 28 by downloading the entire, up-to-date, sdk from Google https://developer.android.com/studio/ (go to bottom of the page).
    I extracted it completely to my b4a_sdk folder and overwrote everything.
    I then ran my sdkManager, searched for Android Platform 28 and checked it, updated all, and and got everything working, including AH PageViewer, but excluding DSTabLayout, in my app.

    DSTabLayout error: same as first post
  8. scsjc

    scsjc Well-Known Member Licensed User

    Any solution for DSTabLayout error with SDK28 ???
  9. DonManfred

    DonManfred Expert Licensed User

  10. scsjc

    scsjc Well-Known Member Licensed User

    Do you think it could be solved? or do we have to start looking for an alternative? ...
  11. AscySoft

    AscySoft Active Member Licensed User

    Yes. You could
    , or revert to design support 27 like I did (in order not to change all the code)
  12. corwin42

    corwin42 Expert Licensed User

    Yes, wait a few hours...
  13. corwin42

    corwin42 Expert Licensed User

    First post is updated with a new version which should fix the crash with 28.0.0 support library TabLayout.
    gravel, Pencil3, asales and 2 others like this.
  14. scsjc

    scsjc Well-Known Member Licensed User

    Work Perfectly :)

    ̶O̶n̶e̶ ̶i̶d̶e̶a̶,̶ ̶i̶s̶ ̶p̶o̶s̶s̶i̶b̶l̶e̶ ̶a̶ ̶c̶h̶a̶n̶g̶e̶ ̶c̶o̶l̶o̶r̶t̶e̶x̶t̶ ̶o̶r̶ ̶b̶a̶c̶k̶g̶r̶o̶u̶n̶d̶c̶o̶l̶o̶r̶ ̶f̶r̶o̶m̶ ̶e̶s̶p̶e̶c̶i̶f̶i̶c̶ ̶t̶a̶b̶ ̶i̶n̶d̶e̶x̶?̶

    Correct, there was already a way to do it, of course very good library

    Dim cs As CSBuilder
    1, cs)
    Thank you
    Last edited: Nov 5, 2018
  15. Scantech

    Scantech Well-Known Member Licensed User

    still crashes with new update.

    Installed v3.00 and crashes with both 27.1.1 and 28.0.0 support library

    Update: I missed the appcompat update. i will try it later on
    Last edited: Nov 5, 2018
  16. IlCasti

    IlCasti Active Member Licensed User

    How to set custom typeface to items in NavigationView?
    How to change typeface font?
    Thank you for helping me.
  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