Android Question GPS tutorial and a new phone

konisek

Member
Licensed User
Longtime User
Hi,
I am trying to install the GPS turitorial on a new phone (Android 14) and getting this error msg:

B4X:
B4A Version: 11.00
Parsing code.    (0.00s)
    Java Version: 14
Building folders structure.    (0.02s)
Compiling code.    (0.01s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.12s)
Linking resources    (0.72s)
Compiling generated Java code.    (0.08s)
Convert byte code - optimized dex.    Error
PARSE ERROR:
unsupported class file version 55.0
...while parsing androidx/activity/lint/ActivityIssueRegistry.class
PARSE ERROR:
unsupported class file version 55.0
...while parsing androidx/annotation/experimental/lint/AnnotationRetentionDetector.class
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
    at com.android.dx.command.dexer.Main.runDx(Main.java:293)
    at com.android.dx.command.dexer.Main.main(Main.java:249)
    at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
    ... 4 more
 

BlueVision

Active Member
Licensed User
Longtime User
First thing:
Upgrade to the current B4A Version 13 as described in the upgrade path by Erel.
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.
Keep in mind that the use of the good old GPS-library will be rejected on most Android 14 devices. Switch to the new GNSS-library.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…