Android Question Parse Error

Robert Valentino

Well-Known Member
Licensed User
Longtime User
When I use this library (mp3agic-0.9.1.jar) in B4J it works OK, but in B4A I get this error

B4X:
B4A Version: 7.30
Parsing code.    (0.31s)
Compiling code.    (0.20s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Generating R file.    (0.03s)
Compiling generated Java code.    (1.71s)
Convert byte code - optimized dex.    Error
PARSE ERROR:
unsupported class file version 52.0
...while parsing com/mpatric/mp3agic/AbstractID3v2FrameData.class
1 error; aborting

How can I fix this or can I
 

DonManfred

Expert
Licensed User
Longtime User
Update java to version 8
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I have the SAME exact path in both my B4J and B4A

upload_2017-12-13_16-8-23.png

upload_2017-12-13_16-9-4.png


B4J works fine B4A gives me the error

I believe the problem is somewhere else????

BobVal
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
No, I am not. It is probably an Windows library (the reason it works with B4J)

I tried to compile it using the SimpleCompiler and got

Starting step: Compiling Java code.
javac 1.8.0_151
E:\mp3agic-master\src\main\java\com\mpatric\mp3agic\FileWrapper.java:6: error: package java.nio.file does not exist
import java.nio.file.Files;


Between this and (as you will see in other posts) trying to create a MediaBrowserServiceCompat service I am so frustrated and lost that it hasn't been any fun for a few days.


PS Welcome back (know you have been busy with upcoming releases)
 
Upvote 0
Top