Android Question B4ASDKManager and OpenJDK14 and JavaFX [SOLVED]

artsoft

Active Member
Licensed User
Longtime User
Hi!

I have problems with Biometrics jar - so I want to check my installed jar with SDKManager.

But I get only this error message:

2021-04-13 04_11_03-Administrator_ cmd.png


I know that normally JavaFX is not included, so I installed it:

2021-04-13 04_14_27-C__Java_jdk-14.0.2_jmods.png


as modules and

2021-04-13 04_13_28-C__Java_jdk-14.0.2_lib.png

as libs!

Environment var JAVA_HOME is correctly set:

2021-04-13 04_15_26-Administrator_ cmd_java_version.png


I need the SDKManager urgently!

Thanks to all who could help here.

Regards
ARTsoft
 

artsoft

Active Member
Licensed User
Longtime User
By the way ......... the new Android runtime tools for B4A are newly installed.

C:\Android\*

_________________________________________________________________

B4A Version:

2021-04-13 04_28_51-Über....png


Regards
ARTsoft
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Best to follow the installation instructions: https://www.b4x.com/b4a.html
If you want Java 14 then download it from here:
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
Best to follow the installation instructions: https://www.b4x.com/b4a.html
If you want Java 14 then download it from here:

Hi!

I did all steps on https://www.b4x.com/b4a.html --- as you can see above, Erel!

New folder C:\Android with all needed files.

Then I downloaded OpenJDK 14.01 / OpenJFX 14 from link you provided above.

I fixed all environment variables on my PC (JAVA_HOME, PATH, CLASSPATH etc.) and now this again:

2021-04-13 12_16_13-cmd.png


JavaFX still missing ...
I need your help again please.

Regards
ARTsoft
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
Now it works, Erel! Thanks a lot.

I have to set now the correct path to sdkmanager.bat file.
Many thanks.

ARTsoft
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
Another problem now, Erel:

SDKMANAGER works - all needed libs are installed.

But I cannot compile my app and I get every time this error:


B4A Version: 10.70
Parse den Code. (0.61s)
Java Version: 14
Building folders structure. (0.02s)
Kompiliere den Code. (0.80s)
Kompiliere Layoutcode. (0.04s)
Organisiere Libraries. (0.00s)
(AndroidX SDK)
Compiling resources (1.66s)
Linking resources (0.80s)
Kompiliere Debugger-Code (6.60s)
Kompiliere generierten Java Code. (7.35s)
Byte-Code konvertieren - optimiert dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$8.updateIndex(DexMerger.java:565)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:276)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:574)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:166)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)
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)


What should I do now?

Regards
ARTsoft
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
I tried with this command line:

B4X:
#MultiDex: True

But this didn't help me:

B4X:
Byte-Code konvertieren - optimiert dex.    Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Library dex files are not supported in multi-dex mode
    at com.android.dx.command.dexer.Main.runMultiDex(Main.java:371)
    at com.android.dx.command.dexer.Main.runDx(Main.java:291)
    at com.android.dx.command.dexer.Main.main(Main.java:249)
    at com.android.dx.command.Main.main(Main.java:94)

:-(
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
Thanks Erel, this works now!!!

You are really great. Thanks for you quick help!
More people like you on this planet and the world would have less problems ? !

Kind regards
ARTsoft
 
Upvote 0
Top