Beta B4A v12.0 beta is available for download

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm happy to release a new version of B4A. This version brings an updated Android, Google, AndroidX and Firebase SDKs.
You must download an updated Android SDK + additional resources, to use the new version.

SDK instructions:

1. Download Windows command line tools: https://developer.android.com/studio#command-line-tools-only
2. Download additional components: https://b4xfiles-4c17.kxcdn.com/b4a/resources_11_22.zip
It is recommended to use a tool such as 7zip to unpack the zip files.
The folders should look like this:

1667204556790.png


3. Download B4A v12.0 BETA: https://www.b4x.com/android/files/beta.exe
4. Tools - Configure Paths. Set the path to android.jar to android-33: <android sdk>\platforms\android-33\android.jar

Improvements:

  1. Updated Android, Google, AndroidX and Firebase SDKs.
  2. Updated libraries: B4XTable v1.23, B4XPages template, FirebaseAdmob2 v3.0, FirebaseAnalytics v3.0, FirebaseAuth v3.0, FirebaseStorage v3.0, FirebaseNotifications v3.0, AppCompat v4.01, USB v1.01, BCTextEngine v1.94, Phone v2.53, GooglePlayBilling v5.0, Core v11.81, NFC v2.02, DesignerUtils v1.04, Facebook v2.0 (external library - to be released soon).
  3. Bug fixes and minor improvements.
 

delgadol

Member
Hi,

I have several applications based on the appCompact; up to android 12 API 32; everything was fine; Last night I tried to compile them; and load them in the Android 13 emulator; and my surprise is that they don't run; the compilation is correct; but they don't run; I have nothing in the log that gives me a clue what is happening. I had thought it was something related to my code; but using an example from the forum; I realized that as simple as it was; by extending it from android.support.v7.app.AppCompatActivity; did not load in Android 13 emulator; so I ask you if any has happened to you; and how did you solve it?
 

Attachments

  • AppCompatBaseExample3_20.zip
    10.9 KB · Views: 246
  • versionide.png
    versionide.png
    59.2 KB · Views: 246
  • android13emulator.png
    android13emulator.png
    16.7 KB · Views: 235
Upvote 0

delgadol

Member
I can to extract this ...

java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
at androidx.savedstate.SavedStateRegistryController$Companion.create(Unknown Source:2)
at androidx.savedstate.SavedStateRegistryController.create(Unknown Source:2)
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:146)
at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:94)
at de.amberhome.appcompat.basicexample.main.<init>(main.java:17)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3670)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3940)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2318)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8298)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
 
Upvote 0

vmag

Active Member
Hello.
I have a problem, there was version B4A 10.2, installed version B4A 12.2 and now all new projects are working, and all old projects are compiled without errors and installed on devices, but they do not work.
Even old projects of examples from the site do not work, for example, "Barcode Reader"
Here are the screenshots:
1. Location of folders after installation
pic1.jpg

2. Setting up paths
pic2.jpg

3. Configuring the SDK
pic3.jpg


#MultiDex: True


pic4.jpg


5. Compilation result

pic5.jpg


After installation, old projects do not work on devices, new projects work.
 
Upvote 0

vmag

Active Member
Deleted everything and installed it again B4A Version: 12.00 BETA #2.
The first compilation after installation takes a long time,
the next compilations go fast.
Changed version Java 14 to 11
Here is the log of the first compilation:
-----------------------------------------------------------
B4A Version: 12.00 BETA #2
Code Analysis. (0.22s)
Java Version: 11
Building folders structure. (0.69s)
Performing user actions. (0.12s)
Code compilation. (0.18s)
Compilation of layout code. (0.06s)
Organization of libraries. (0.93s)
(AndroidX SDK)
Compiling resources (5.76s)
Linking resources (1.30s)
Compilation of generated code Java. (9.62s)
Finding libraries that need to be dexed. (0.05s)
Dex: B4AShared (4.81s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-v4\1.0.0\unpacked-legacy-support-v4-1.0.0\jars\classes (1.41s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\core\core\1.9.0\unpacked-core-1.9.0\jars\classes (16.89s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\core\core-ktx\1.9.0\unpacked-core-ktx-1.9.0\jars\classes (7.01s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\annotation\annotation-experimental\1.3.0\unpacked-annotation-experimental-1.3.0\jars\classes (3.12s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.5.1\unpacked-lifecycle-runtime-2.5.1\jars\classes (4.28s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\versionedparcelable\versionedparcelable\1.1.1\unpacked-versionedparcelable-1.1.1\jars\classes (4.35s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\media\media\1.6.0\unpacked-media-1.6.0\jars\classes (12.32s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-utils\1.0.0\unpacked-legacy-support-core-utils-1.0.0\jars\classes (5.05s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\documentfile\documentfile\1.0.1\unpacked-documentfile-1.0.1\jars\classes (5.47s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\loader\loader\1.1.0\unpacked-loader-1.1.0\jars\classes (6.12s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-core\2.5.1\unpacked-lifecycle-livedata-core-2.5.1\jars\classes (4.54s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.5.1\unpacked-lifecycle-viewmodel-2.5.1\jars\classes (4.47s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-savedstate\2.5.1\unpacked-lifecycle-viewmodel-savedstate-2.5.1\jars\classes (3.47s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.2.0\unpacked-savedstate-1.2.0\jars\classes (2.93s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\localbroadcastmanager\localbroadcastmanager\1.1.0\unpacked-localbroadcastmanager-1.1.0\jars\classes (2.95s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\print\print\1.0.0\unpacked-print-1.0.0\jars\classes (3.20s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-ui\1.0.0\unpacked-legacy-support-core-ui-1.0.0\jars\classes (2.94s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\customview\customview\1.1.0\unpacked-customview-1.1.0\jars\classes (4.14s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\viewpager\viewpager\1.0.0\unpacked-viewpager-1.0.0\jars\classes (5.31s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.2.0\unpacked-coordinatorlayout-1.2.0\jars\classes (4.87s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\drawerlayout\drawerlayout\1.1.1\unpacked-drawerlayout-1.1.1\jars\classes (3.98s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\slidingpanelayout\slidingpanelayout\1.2.0\unpacked-slidingpanelayout-1.2.0\jars\classes (4.28s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\interpolator\interpolator\1.0.0\unpacked-interpolator-1.0.0\jars\classes (2.31s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\swiperefreshlayout\swiperefreshlayout\1.1.0\unpacked-swiperefreshlayout-1.1.0\jars\classes (4.07s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\asynclayoutinflater\asynclayoutinflater\1.0.0\unpacked-asynclayoutinflater-1.0.0\jars\classes (2.55s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\cursoradapter\cursoradapter\1.0.0\unpacked-cursoradapter-1.0.0\jars\classes (2.61s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\fragment\fragment\1.5.4\unpacked-fragment-1.5.4\jars\classes (11.73s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\activity\activity\1.6.1\unpacked-activity-1.6.1\jars\classes (6.73s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\activity\activity-ktx\1.6.1\unpacked-activity-ktx-1.6.1\jars\classes (3.17s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime-ktx\2.5.1\unpacked-lifecycle-runtime-ktx-2.5.1\jars\classes (3.71s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-ktx\2.5.1\unpacked-lifecycle-viewmodel-ktx-2.5.1\jars\classes (2.33s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\savedstate\savedstate-ktx\1.2.0\unpacked-savedstate-ktx-1.2.0\jars\classes (2.02s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-vision\20.1.3\unpacked-play-services-vision-20.1.3\jars\classes (4.67s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-base\18.1.0\unpacked-play-services-base-18.1.0\jars\classes (10.08s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-basement\18.1.0\unpacked-play-services-basement-18.1.0\jars\classes (8.64s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-tasks\18.0.2\unpacked-play-services-tasks-18.0.2\jars\classes (3.66s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-vision-common\19.1.3\unpacked-play-services-vision-common-19.1.3\jars\classes (11.65s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-clearcut\17.0.0\unpacked-play-services-clearcut-17.0.0\jars\classes (14.27s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-phenotype\17.0.0\unpacked-play-services-phenotype-17.0.0\jars\classes (3.51s)
Dex: c:\android33\tools\..\extras\b4a_remote\com\google\android\gms\play-services-flags\18.0.1\unpacked-play-services-flags-18.0.1\jars\classes (2.96s)
Dex: c:\android33\tools\..\extras\b4a_remote\androidx\multidex\multidex\2.0.1\unpacked-multidex-2.0.1\jars\classes (3.62s)
Dex: Core (7.45s)
Dex: Reflection (3.20s)
Dex: RuntimePermissions (2.40s)
Dex: Camera (2.91s)
Dex: XUI (3.47s)
Dex: JavaObject (2.80s)
Dex: BitmapCreator (5.77s)
Dex: OkHttp (3.19s)
Dex: StringUtils (4.64s)
Dex: okhttp-4.9.0 (11.36s)
Dex: okio-2.8.0 (8.11s)
Dex: okhttp-urlconnection-4.9.3 (2.44s)
Dex: kotlin-stdlib-1.6.10 (19.92s)
Dex: C:\android33\tools\..\extras\b4a_remote\androidx\annotation\annotation\1.5.0\annotation-1.5.0 (2.50s)
Dex: C:\android33\tools\..\extras\b4a_remote\androidx\arch\core\core-common\2.1.0\core-common-2.1.0 (2.55s)
Dex: C:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-common\2.5.1\lifecycle-common-2.5.1 (3.64s)
Dex: C:\android33\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-common-java8\2.5.1\lifecycle-common-java8-2.5.1 (1.50s)
Dex: C:\android33\tools\..\extras\b4a_remote\androidx\collection\collection\1.2.0\collection-1.2.0 (4.82s)
Dex code (9.30s)
Dex merge (13.20s)
Copying Library resources (3.36s)
ZipAlign file. (0.27s)
Package file signature (private key). (2.23s)
Installing the file on the device. (0.69s)
Installation using B4A-Bridge.
Completed successfully.
===============================================

Here is an example with B4X.COM which is now installed on the phone without errors,
but does not work after launch.
New projects and some old projects are working.
 

Attachments

  • ScanBarcod.zip
    178.1 KB · Views: 257
Upvote 0

vmag

Active Member
This is expected as new resources are dexed when first compiled.

About the issue you encountered - please start a new thread.
My problem is solved. I connected the previous android package-30 + SDK to B4A 12.2 and all the old applications work after installation.
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
My problem is solved. I connected the previous android package-30 + SDK to B4A 12.2 and all the old applications work after installation.
Not solved. You need to use the new SDK + Resources. So if its not working, try and make it work with the help of the forum and Erel
 
Upvote 0

Alain75

Member
I downloaded all the files needed, uncompressed the 2 zip files (with 7zip I regularly use) and install B4A 12.00. I still had the old internal libraries. I deleted as mentionned the content of the folder «C:\Program Files\Anywhere Software\B4A\Libraries» and reinstall B4A. Unfortunately, I still have the old ones.

Did I miss something ?
Thanks
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Did I miss something ?
B4A is now 64bit so you deleted the correct library. Are you somehow using the 32bit version in 'C:\Program Files (x86)\Anywhere Software\B4A\Libraries? You should uninstall the 32bit version in Control Panel to avoid confusion.
 
Last edited:
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
I am also getting an error when using the GPGS library. (More precisely, with SignIn)
I saw the post above, but I'm not sure what has changed since the last stable version of B4A and is it normal?
B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
at androidx.savedstate.SavedStateRegistryController$Companion.create(Unknown Source:2)
at androidx.savedstate.SavedStateRegistryController.create(Unknown Source:2)
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:146)
at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.<init>(com.google.android.gms:play-services-auth@@20.3.0:1)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3532)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
... 21 more

B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;
    at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:322)
    at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:178)
    at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:277)
    at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
    at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.<init>(com.google.android.gms:play-services-auth@@20.3.0:1)
    at java.lang.Class.newInstance(Native Method)
    at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3532)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7839)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.ClassNotFoundException: androidx.arch.core.executor.ArchTaskExecutor
    ... 21 more
 
Last edited:
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
Add these lines to main module:
B4X:
#AdditionalJar: kotlin-stdlib-1.6.10
#AdditionalJar: androidx.arch.core:core-common
#AdditionalJar: androidx.arch.core:core-runtime

Yes thank you. Will it be like this now or until the release of the stable version?
 
Last edited:
Upvote 0

Andrija

New Member
Licensed User
Longtime User
Go to the internal libraries folder. Delete all files and reinstall B4A v12.0.
Thank you Erel, great work!:)

But please help. And after delete/reinstall I have old versions of libraries!? It seems that software always use old path (C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries) instead new one (C:\Program Files\Anywhere Software\B4A\Libraries) for libraries. On right click I see the new path, but can't refresh...
Maybe it will be good to have and setup of link for internal libraries, like we have for additional. What to do now? :)
p.s. I have a feeling if I put new libraries in old folder it will work, but it isn't correct solution so...
 
Upvote 0
Top