Android Question What is this error? (parse error)

vecino

Well-Known Member
Licensed User
Longtime User
Hello, after several months and having changed version of B4A, I went to make a change in a small project I have and my surprise was that it does not compile and shows the following error:
What can I do?
Thank you.

B4A Version: 11.20
Parsing code. (0.37s)
Java Version: 11
Building folders structure. (0.08s)
Compiling code. (0.44s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.01s)
(AndroidX SDK)
Compiling resources (0.15s)
Linking resources (0.88s)
Compiling generated Java code. (5.70s)
Convert byte code - dex. Error
PARSE ERROR:
unsupported class file version 53.0
...while parsing META-INF/versions/9/module-info.class
1 error; aborting
 

vecino

Well-Known Member
Licensed User
Longtime User
Hello, yes, I have been searching and reading different cases and I haven't found anything that works for me.
In theory it seems to be because it has been compiled with a newer version of java, but I haven't changed the java version, I still have the same one.
Thank you.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, this project uses these libraries:
Thank you.
Hu1qpfn.png
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
As an aside you should be using the Dialogs2 library and the async versions of those dialogs.
Also Reflection is now supplied as an internal library so you should delete it from your additional libraries.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I was not aware of the existence of "Dialogs2". I have changed it and the problem persists.
Reflection is internal, what do you mean?
Thank you very much.

They are now like this:

librarys.png
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Reflection is internal, what do you mean?
What I said. It is now supplied as an internal library like JavaObject and is (or should be) in ProgramFiles(x86)\AnywhereSoftware\Basic4android\Libraries.

I was not aware of the existence of "Dialogs2
You must have forgotten! šŸ˜ Getting old like me? :(
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I've lost my head! Maybe it's senile dementia, I didn't remember that. Sometimes I even have doubts and I do a search and I discover that I had already asked that question before and I had solved it. I think I need to worry about that :eek:

Reflection is marked as internal, you're not talking about another library?
Thank you.
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
unsupported class file version 53.0
...while parsing META-INF/versions/9/module-info.class
It definitely looks like one of the additional libraries was compiled with Java 9. Try omitting them one at a time if you can to find out which one is causing the problem.

 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I have tried removing "Archiver" and the error is the same.
The other remaining additional library is "ScrollView2d" which is used by the "Flexible Table" class.
I created a new project with that class and there is no problem either.
And there are no more additional libraries, everything else is internal.
I'm lost.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Oh!!! I am trying to compile all my projects and some, a few, work, but the rest all give the following threatening, disturbing, disturbing, creepy error....
All this happens since I installed the latest version of B4A, can it have something to do with this?
o_OšŸ¤¢šŸ¤’
B4A Version: 11.20
Parsing code. (1.03s)
Java Version: 11
Building folders structure. (0.54s)
Compiling code. (0.66s)
Compiling layouts code. (0.06s)
Organizing libraries. (0.01s)
(AndroidX SDK)
Running custom action. (0.54s)
Compiling resources (0.88s)
Linking resources (0.95s)
Compiling generated Java code. (10.03s)
Convert byte code - dex. Error
PARSE ERROR:
unsupported class file version 53.0
...while parsing META-INF/versions/9/module-info.class
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.Channel$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.ChannelSftp$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.ConfigRepository$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.ConfigRepository$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.JSch$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.ChannelSftp$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.ChannelSftp$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.jcraft.jsch.Util$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
1 error; aborting
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Have you tried installing a new SDK? I believe B4A 11.2 requires an up to date SDK. Put a new one in a different folder, point B4A at it and see if it works then.

com.jcraft.jsch.Channel that it is complaining about is Java Secure Channel which is a Java implementation of SSH2. I don't know if it comes with the SDK or is in one of the B4A internal networking libraries.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Have you tried installing a new SDK? I believe B4A 11.2 requires an up to date SDK. Put a new one in a different folder, point B4A at it and see if it works then.
Yes I installed that new SDK version together with the new B4A as well :(
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I'm going to try the previous version, I didn't delete the SDK, I renamed it. But I did delete B4A, where can I get the previous version of B4A to test?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I've been doing a lot of testing to make sure and this is the result:

I found v11.00 in a backup.
And using that v11.00 and the SDK before the one currently available for download on the web, everything compiles fine.

I have also tried v11.00 and the new SDK that is now on the web for download and it works fine.

The problems start only when I install the latest version of B4A.
 
Upvote 0
Top