Android Question classes.dex files

Sergey_New

Well-Known Member
Licensed User
Longtime User
When compiling in the latest version of B4A, two files classes.dex and classes2.dex are created. In the previous version, only one file was created. What can be adjusted or is it supposed to be like this?
 
Last edited:
Solution
v13.0 - August 26, 2024

The Android SDK and the underlying toolchain where updated with preparation for Android 14 (targetSdkVersion=34) requirements.
Many of the internal libraries and also external libraries were updated and now depend on the latest Android SDK resources.

The new version depends on Java 19.
Many of the features depend on an updated Android SDK.

Source: B4A change log https://www.b4x.com/android/forum/threads/b4a-change-log-versions-history.19332/

aeric

Expert
Licensed User
Longtime User
Multiple classes.dex files (or more generally, DEX files) are created in Android applications when they exceed the method count limit of 65,535 methods per DEX file. This limit was introduced in earlier Android versions and was a key factor in the development of multi-DEX support. By default, Android build tools split the application's code into multiple DEX files to overcome this limitation.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
v13.0 - August 26, 2024

The Android SDK and the underlying toolchain where updated with preparation for Android 14 (targetSdkVersion=34) requirements.
Many of the internal libraries and also external libraries were updated and now depend on the latest Android SDK resources.

The new version depends on Java 19.
Many of the features depend on an updated Android SDK.

Source: B4A change log https://www.b4x.com/android/forum/threads/b4a-change-log-versions-history.19332/
 
Upvote 0
Solution

Sergey_New

Well-Known Member
Licensed User
Longtime User
The new version depends on Java 19.
Many of the features depend on an updated Android SDK.
Well, what can you do? You'll have to live with two files. :)
Thanks!
 
Upvote 0
Top