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.
 

Mostez

Well-Known Member
Licensed User
Longtime User
I installed the new version as instructed, but I still get libraries old release number. For example B4Xtable 1.22, BCTextEngine 1.93, NFC 2.01, I had to uninstall the old B4A first, and delete old B4A folder, then install the new one?
[EDIT]
Didn't notice that it is installed under new path(C:\Program Files\Anywhere Software\B4A), unlike older version (C:\Program Files (x86)\Anywhere Software\Basic4android), everything is OK now.
 
Last edited:
Upvote 0

Peter Simpson

Expert
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:

View attachment 135474

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.
Thank you as always Erel for the software updates and your dedication to the cause đź‘Ť
 
Upvote 0
b4a can be summed up in a few words:
Simple, powerful, free (open source), with a strong community and support, the founder of revolution and evolution in the development of Android applications.
I hope b4x will make b4i open source and free by attracting funds.
I can boldly say that Erel is a scientist who has created a great and positive change in the world by using his knowledge. Thousands of people are programming with b4x and have created jobs for themselves and others. Let me tell my story. I had already heard things about programming, for example, that it is the most modern and high-paying job in the world. Because I had an Android phone, I felt interested in Android programming, so I tried to learn things by searching Android programming on Google, but I was disappointed at the very beginning! Installing Android Studio on one hand and working with Java and xml files on the other hand was exhausting for me. So I was completely disappointed and said to myself, this is for geniuses, not for you! Some time passed before I met b4a. It was very easy to install and configure, and the first program I wrote with b4a was to display a toast. It was strange to me how Android programming can be so simple and exciting. I compared how to display toast in b4a with Java. The simplicity of b4a was unbelievable.
Now, thanks to b4a, I have several applications and earn good income.
I decided to continue programming for the rest of my life because it is interesting, exciting, lucrative and simple thanks to b4a.
Thank you dear Erel
 
Upvote 0

Xfood

Expert
Licensed User
Good afternoon,
I'm trying to compile my own app, and I get this error, I don't understand why.

I had already recompiled this morning with version 11.80 without any problem, updated with command line, additional components, and b4a beta and I find this error.

B4X:
B4A Versione: 12.00 BETA #1
Analisi del Codice.    (0.21s)
    Java Versione: 14
Building folders structure.    (0.17s)
Compilazione del codice.    (0.76s)
Compilazione del codice di layouts    (0.08s)
Organizzazione Librerie.    (0.00s)
    (AndroidX SDK)
Compilazione risorse    (0.25s)
Collegamento risorse    (0.88s)
Compilazione del codice Java prodotto.    (0.07s)
Ricerca librerie che necessitano di essere "dexed".    (0.02s)
Dex code    (0.78s)
Dex merge    Error
Error: Cannot fit requested classes in a single dex file (# methods: 65977 > 65536). Try supplying a main-dex list
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:98)
    at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
    at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
    at com.android.tools.r8.internal.vj.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:17)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:85)
    ... 1 more
Caused by: com.android.tools.r8.internal.f: Cannot fit requested classes in a single dex file (# methods: 65977 > 65536)
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.internal.v20.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:565)
    at com.android.tools.r8.internal.r20.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:7)
    at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:335)
    at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:412)
    at com.android.tools.r8.D8.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:794)
    at com.android.tools.r8.D8.c(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
    ... 5 more
 
Upvote 0

asales

Expert
Licensed User
Longtime User
I use this lib and get this error in compile:
B4X:
Maven artifact not found: com.google.firebase/firebase-abt
Source: FirebaseRemoteConfig
In the post of the lib the author says to update the SDK with "only" firebase-abt, but I don't see the tools folder with sdkmanager.bat in the updated Android SDK + additional resources,
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Look at <AndroidSDK_B4A>\cmdline-tools\bin\sdkmanager.bat

Rubén
Thank you. I think the instruction on the setup page have to be updated when using B4A 12+

<AndroidSDK_B4A>\tools\bin\sdkmanager.bat
to
<AndroidSDK_B4A>\cmdline-tools\bin\sdkmanager.bat
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
Good afternoon,
I'm trying to compile my own app, and I get this error, I don't understand why.

I had already recompiled this morning with version 11.80 without any problem, updated with command line, additional components, and b4a beta and I find this error.

B4X:
B4A Versione: 12.00 BETA #1
Analisi del Codice.    (0.21s)
    Java Versione: 14
Building folders structure.    (0.17s)
Compilazione del codice.    (0.76s)
Compilazione del codice di layouts    (0.08s)
Organizzazione Librerie.    (0.00s)
    (AndroidX SDK)
Compilazione risorse    (0.25s)
Collegamento risorse    (0.88s)
Compilazione del codice Java prodotto.    (0.07s)
Ricerca librerie che necessitano di essere "dexed".    (0.02s)
Dex code    (0.78s)
Dex merge    Error
Error: Cannot fit requested classes in a single dex file (# methods: 65977 > 65536). Try supplying a main-dex list
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:98)
    at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
    at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
    at com.android.tools.r8.internal.vj.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:17)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:85)
    ... 1 more
Caused by: com.android.tools.r8.internal.f: Cannot fit requested classes in a single dex file (# methods: 65977 > 65536)
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.internal.v20.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:565)
    at com.android.tools.r8.internal.r20.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:7)
    at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:335)
    at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:412)
    at com.android.tools.r8.D8.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:794)
    at com.android.tools.r8.D8.c(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
    ... 5 more
Add this line into Main #MultiDex: true
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Error Building App Bundle
1. The Compiler window looking into TOOLS folder for the bundle tool instead of the CMDLINE-TOOLS
2. Package does not contain Bundletools.jar (It was extracted with 7zip)

B4X:
B4A Version: 12.00 BETA #1
Parsing code.    (0.71s)
    Java Version: 11
Building folders structure.    (0.16s)
Compiling code.    (0.41s)
    
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.07s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.34s)
Linking resources    (4.11s)
Compiling generated Java code.    (5.16s)
Finding libraries that need to be dexed.    (0.38s)
Dex code    (3.78s)
Dex merge    (7.76s)
Copying libraries resources    (8.77s)
Building app bundle    Error
C:\android33\tools\bin\bundletool.jar

3. When I manually created the missing tools\bin location and placed the bundletool.jar I get this error

B4X:
B4A Version: 12.00 BETA #1
Parsing code.    (0.13s)
    Java Version: 11
Building folders structure.    (0.13s)
Compiling code.    (0.50s)
    
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.07s)
Organizing libraries.    (1.05s)
    (AndroidX SDK)
Compiling resources    (0.36s)
Linking resources    (13.41s)
Compiling generated Java code.    (65.50s)
Finding libraries that need to be dexed.    (0.05s)
Dex code    (9.87s)
Dex merge    (8.53s)
Copying libraries resources    (12.02s)
Building app bundle    Error
[BT:1.5.0] Error: File 'root/classes.dex' uses reserved file or directory name 'classes.dex'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: File 'root/classes.dex' uses reserved file or directory name 'classes.dex'.
    at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
    at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:131)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:81)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundleModules$4(ValidatorRunner.java:64)
    at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModules(ValidatorRunner.java:63)
    at com.android.tools.build.bundletool.validation.BundleModulesValidator.validate(BundleModulesValidator.java:82)
    at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:231)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:71)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:47)
 
Upvote 0
Top