Android Question DSTabLayout Library Issues.

dealsmonkey

Active Member
Licensed User
Longtime User
Hi Everyone,

I have been using the DSTabLayout library without issues. Yesterday I updated the SDK to Android Support Library 23.2.1

I have copied the android support v4 and v7 files to my add libs folder. Now I am getting the following crash :

Any thoughts please ?

B4X:
LogCat connected to: TA3640AV4H
--------- beginning of crash
--------- beginning of system
--------- beginning of main
Copying updated assets files (17)
** Service (starter) Create **
{SerialNo=8BA870ED1511005DA5B985CD0057E327B83546112C132B0731171E, Make=0F17FC498B9677DB58, Model=DF47CC79DB4B0F0F270258D71B5210, Product=4DAB5AF550D241986EBF44D80A, Version=3C054C, Os=F35FB722A77D94C0}
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Panel size is unknown. Layout may not be loaded correctly.
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
    at android.support.design.widget.TabLayout$TabView.<init>(TabLayout.java:1185)
    at android.support.design.widget.TabLayout.createTabView(TabLayout.java:656)
    at android.support.design.widget.TabLayout.addTabView(TabLayout.java:695)
    at android.support.design.widget.TabLayout.addTab(TabLayout.java:386)
    at android.support.design.widget.TabLayout.addTab(TabLayout.java:361)
    at android.support.design.widget.TabLayout.setTabsFromPagerAdapter(TabLayout.java:645)
    at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:616)
    at de.amberhome.objects.TabLayoutWrapper.SetViewPager(TabLayoutWrapper.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5310)
    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:901)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TintManager" on path: DexPathList[[zip file "/data/app/b4a.example-1/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)
    ... 27 more
    Suppressed: java.lang.ClassNotFoundException: android.support.v7.widget.TintManager
        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)
        ... 28 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Resume **
Error occurred on line: 82 (Main)
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    at java.util.ArrayList.get(ArrayList.java:308)
    at android.support.design.widget.TabLayout.getTabAt(TabLayout.java:448)
    at de.amberhome.objects.TabLayoutWrapper.SetTabIcon(TabLayoutWrapper.java:154)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at b4a.example.main.afterFirstLayout(main.java:108)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5310)
    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:901)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
An error occurred:
(Line: 93) If guid = "null"  Then
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
** Service (starter) Create **
{SerialNo=8BA870ED1511005DA5B985CD0057E327B83546112C132B0731171E, Make=0F17FC498B9677DB58, Model=DF47CC79DB4B0F0F270258D71B5210, Product=4DAB5AF550D241986EBF44D80A, Version=3C054C, Os=F35FB722A77D94C0}
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Panel size is unknown. Layout may not be loaded correctly.
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
    at android.support.design.widget.TabLayout$TabView.<init>(TabLayout.java:1185)
    at android.support.design.widget.TabLayout.createTabView(TabLayout.java:656)
    at android.support.design.widget.TabLayout.addTabView(TabLayout.java:695)
    at android.support.design.widget.TabLayout.addTab(TabLayout.java:386)
    at android.support.design.widget.TabLayout.addTab(TabLayout.java:361)
    at android.support.design.widget.TabLayout.setTabsFromPagerAdapter(TabLayout.java:645)
    at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:616)
    at de.amberhome.objects.TabLayoutWrapper.SetViewPager(TabLayoutWrapper.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5310)
    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:901)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TintManager" on path: DexPathList[[zip file "/data/app/b4a.example-1/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)
    ... 27 more
    Suppressed: java.lang.ClassNotFoundException: android.support.v7.widget.TintManager
        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)
        ... 28 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Resume **
Error occurred on line: 82 (Main)
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    at java.util.ArrayList.get(ArrayList.java:308)
    at android.support.design.widget.TabLayout.getTabAt(TabLayout.java:448)
    at de.amberhome.objects.TabLayoutWrapper.SetTabIcon(TabLayoutWrapper.java:154)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at b4a.example.main.afterFirstLayout(main.java:108)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5310)
    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:901)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
 
Top