Hi,
I am trying to use CarousalView on AndroidX. https://www.b4x.com/android/forum/threads/carouselview-a-carousel-for-displaying-images.64865/
This beautiful library is failing in AndroidX and B4A 9.30. Is there any way to make this work with the new AnfroidX requirement?
At the bottom end of the CarousalView.xml there is the following entry
<dependsOn>android-support-v4</dependsOn>
I get the following runtime error
android.view.InflateException: Binary XML file line #5: Binary XML file line #5: Error inflating class android.support.v4.view.ViewPager
Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class android.support.v4.view.ViewPager
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewPager" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.myappname.publicapp-CF8fRyFFHO7HG_Lr8SyJPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.myappname.publicapp-CF8fRyFFHO7HG_Lr8SyJPw==/lib/arm64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:829)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:902)
at android.view.LayoutInflater.inflate(LayoutInflater.java:528)
at android.view.LayoutInflater.inflate(LayoutInflater.java:461)
at main.java.com.synnapps.carouselview.CarouselView.initView(CarouselView.java:79)
at main.java.com.synnapps.carouselview.CarouselView.<init>(CarouselView.java:61)
at carouselviewwrapper.carouselViewWrapper._initialize(carouselViewWrapper.java:105)
at carouselviewwrapper.carouselViewWrapper.Initialize(carouselViewWrapper.java:98)
at com.myappname.publicapp.myactivity._buildclv(myactivity.java:578)
at com.myappname.publicapp.myactivity._reqmanager_result(myactivity.java:1308)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1179)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7263)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
** Activity (myactivity) Pause, UserClosed = false **
Any help will be appreciated
I am trying to use CarousalView on AndroidX. https://www.b4x.com/android/forum/threads/carouselview-a-carousel-for-displaying-images.64865/
This beautiful library is failing in AndroidX and B4A 9.30. Is there any way to make this work with the new AnfroidX requirement?
At the bottom end of the CarousalView.xml there is the following entry
<dependsOn>android-support-v4</dependsOn>
I get the following runtime error
android.view.InflateException: Binary XML file line #5: Binary XML file line #5: Error inflating class android.support.v4.view.ViewPager
Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class android.support.v4.view.ViewPager
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewPager" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.myappname.publicapp-CF8fRyFFHO7HG_Lr8SyJPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.myappname.publicapp-CF8fRyFFHO7HG_Lr8SyJPw==/lib/arm64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:829)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:902)
at android.view.LayoutInflater.inflate(LayoutInflater.java:528)
at android.view.LayoutInflater.inflate(LayoutInflater.java:461)
at main.java.com.synnapps.carouselview.CarouselView.initView(CarouselView.java:79)
at main.java.com.synnapps.carouselview.CarouselView.<init>(CarouselView.java:61)
at carouselviewwrapper.carouselViewWrapper._initialize(carouselViewWrapper.java:105)
at carouselviewwrapper.carouselViewWrapper.Initialize(carouselViewWrapper.java:98)
at com.myappname.publicapp.myactivity._buildclv(myactivity.java:578)
at com.myappname.publicapp.myactivity._reqmanager_result(myactivity.java:1308)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1179)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7263)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
** Activity (myactivity) Pause, UserClosed = false **
Any help will be appreciated