Android Question [SOLVED] error with StdActionBar with B4A 13.00

sirjo66

Well-Known Member
Licensed User
Longtime User
Hi all folks,
I need to modify an old B4A app (not B4Xpages) that use StdActionBar 1.52 version library.
With B4A 13.00, when I try to compile, this is the error:

B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/ViewPager;
    at anywheresoftware.b4a.objects.StdActionBar$StdViewPager.Initialize(StdActionBar.java:349)
    at sjs.library.main._activity_create(main.java:501)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
        ..... and so on

Do I need to update the library ?
Where can I found it ?

Thanks
Sergio
 

sirjo66

Well-Known Member
Licensed User
Longtime User
Here is:
B4X:
B4A Version: 13.00
Parsing code.    (0.09s)
    Java Version: 19
Building folders structure.    (0.05s)
Compiling code.    (0.23s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.09s)
Linking resources    (0.29s)
    build tools: 34.0.0, android jar: android-34
Compiling debugger engine code.    (0.01s)
Compiling generated Java code.    (0.06s)
Finding libraries that need to be dexed.    (0.01s)
Dex code    (0.98s)
Dex merge    (3.80s)
Copying libraries resources    (1.84s)
ZipAlign file.    (0.04s)
Signing package file (private key).    (0.43s)
Installing file to device.    Error
No device found.

Manifest:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="20" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'SetApplicationAttribute(android:theme, "@android:style/Theme")
'End of default text.
SetApplicationAttribute(android:usesCleartextTraffic, "true")

In attachment path configuration

Thanks
Sergio
 

Attachments

  • Immagine.png
    Immagine.png
    15.5 KB · Views: 29
Upvote 0
Top