Android Question StdViewPager failed to initialize

dws

Member
Licensed User
Longtime User
After update to v.10.70 StdViewPager failed to initialize and crash project.


Basic4Android v.10.70
Java\jdk-11.0.1
platforms\android-30

I have many apps that using StdViewPager. Any Help Please

I attach a sample for error test ...

Thanks.

This is the error.
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = true **
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/ViewPager;
at anywheresoftware.b4a.objects.StdActionBar$StdViewPager.Initialize(StdActionBar.java:344)
at b4a.example160521.main._activity_create(main.java:421)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
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 java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at b4a.example160521.main.afterFirstLayout(main.java:105)
at b4a.example160521.main.access$000(main.java:17)
at b4a.example160521.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6939)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
 

Attachments

  • 1.zip
    11.8 KB · Views: 138

dws

Member
Licensed User
Longtime User
Thanks Erel
I have run jetify but nothing. I made full installation by instruction and nothing again ...
 
Upvote 0

dws

Member
Licensed User
Longtime User
When i run jetify he say ( All set. Nothing to do! ).
There is another way to jetify StdViewPager ?
 
Upvote 0

dws

Member
Licensed User
Longtime User
Thanks Erel Solved.

Additional instructions for anyone with a similar problem. ( java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/ )

1. Copy the relevant library from the folder (C: \ Program Files (x86) \ Anywhere Software \ Basic4android \ Libraries)
2. Paste in your folder (AdditionalLibs)
3. Execute the selection from the Tools menu (Jetifier)
4. Return the library from the folder (AdditionalLibs) to the folder (C: \ Program Files (x86) \ Anywhere Software \ Basic4android \ Libraries)
5. Open And everything works normally ...
 
Upvote 0
Top