Android Question Not working after update

attune

Member
Just updated B4A to lastest version, along with Java and Android.

Very small program, and getting this error:


B4A Version: 10.50
Parsing code. (0.16s)
Java Version: 11
Building folders structure. (2.47s)
Compiling code. (1.55s)
Compiling layouts code. (0.13s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (2.68s)
Compiling debugger engine code. Error
An exception has occurred in the compiler (11.0.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.RuntimeException: no bytes written
at java.base/java.nio.channels.Channels.writeFullyImpl(Channels.java:76)
at java.base/java.nio.channels.Channels.writeFully(Channels.java:97)
at java.base/java.nio.channels.Channels$1.write(Channels.java:172)
at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1911)
at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1741)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:757)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1635)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1603)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)

javac 11.0.1



Please help me! :)
 

MikeSW17

Active Member
Licensed User
Did you precisely follow the installation instructions here: https://www.b4x.com/b4a.html ?
You mentioned updating Java & Android, but did you update required resources also?

Usually, problems just after Install or Update are caused by deviating from the instructions.
Do Everything as in the instructions, do No More, do No Less.

Check your folder structures match those shown in the instructions.
ALWAYS use 7-Zip to extract ZIPs (rather than Windows built-in Extractor which can corrupt the extracted structure).
 
Upvote 0

attune

Member
Followed the instructions to the letter, as I have done several times over the years. Never had an issue before.

I've just renamed my java and android folders to xxx-old and then decompressed the three zip files again, using z-zip, to java and android folders.
Re-opened b4a and checked the configured paths.

still having the same issue
 
Upvote 0

attune

Member
I've also now tried the Oracle JDK, and that is also not working.


B4A Version: 10.50
Parsing code. (0.07s)
Java Version: 8
Building folders structure. (2.19s)
Compiling code. (1.41s)
Compiling layouts code. (0.11s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. Error
Process timed out.
You can change it under Tools - IDE Options.
javac 1.8.0_281
 
Upvote 0

attune

Member
Thank Erel, I've literally just got it working.
There must have been some issue with the project file I had open; even when I stripped it back to just load a layout with a edittext with some text in, it sill wouldnt work.
I then created a new project, added a layout with edittext and it now works fine.

Annoying that I dont know what the issue was, but happy it's now working.

To answer your questions though. Not a VM and Win 10 Pro
 
Upvote 0
Top