Today I tried to make an extension with external libraries. I imported them into appinventor-sources, I wrote the code from the docs and it all compiled, but in appinventor I get the error:
BUILD FAILED
C:\Users\Ayush\appinventor-sources\appinventor\build.xml:73: The following error occurred while executing this line:
C:\Users\Ayush\appinventor-sources\appinventor\components\build.xml:474: The following error occurred while executing this line:
C:\Users\Ayush\appinventor-sources\appinventor\components\build.xml:487: Java returned: 1
Total time: 1 minute 58 seconds
dexExtension:
[java] Picked up _JAVA_OPTIONS: -Xmx1024m
[java]
[java] PARSE ERROR:
[java] InvokeDynamic not supported
[java] ...while preparsing cst 0008 at offset 00000027
[java] ...while parsing io/github/furstenheim/CopyDown$Rules.class
[java] 1 error; aborting
BUILD FAILED
C:\Users\Ayush\appinventor-sources\appinventor\build.xml:73: The following error occurred while executing this line:
C:\Users\Ayush\appinventor-sources\appinventor\components\build.xml:474: The following error occurred while executing this line:
C:\Users\Ayush\appinventor-sources\appinventor\components\build.xml:487: Java returned: 1
Total time: 1 minute 58 seconds
Recently there was an update to extension mechanism supporting Java 11.
If you havent updated the repo in a while, it's probably because your library uses Java 8+ features.
Or if you have cloned the repo recently, error is because it uses Java 11+ features.
The error is also in Niotron IDE (maybe I should ask that part in Niotron community)
The library was made 2 years ago.
How do I use the old appinventor-sources?
So now what do I do?
What to configure for Java 11 libraries?
If I am unable to compile it again after some steps, I need it to be compiled by someone else who has everything configured properly (for free only).
I updated the line, and it didn't help me compile, same error.
Now I want to know what should I do to fix the compiler error? Maybe because this library is made with Java 11 could be the reason it doesn't compile?
What do I need to do? I am a beginner and have faced this issue for the first time...
Thank you