Error occurs after running ant command when trying to run app inventor locally

While running the MIT app inventor locally i got the following error when running ant command
The log is`[java] Converting compiled files and external libraries into C:\Users\Alwin\AppData\Local\Temp\1734016767700_6624665607910703104-0\youngandroidproject..\build\tmp...
[java]
[java] PARSE ERROR:
[java] InvokeDynamic not supported
[java] ...while preparsing cst 0047 at offset 00000144
[java] ...while parsing androidx/core/app/ActivityCompat.class
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$4) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$3) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$5) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.LogFactory$6) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.impl.LogFactoryImpl$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.impl.LogFactoryImpl$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.impl.SimpleLog$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.impl.WeakHashtable$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.shaded.apache.commons.logging.impl.LogFactoryImpl$3) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.log.Log$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.servlet.CGI$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.Scanner$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSON$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSON$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSONPojoConvertor$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSONPojoConvertor$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSONPojoConvertor$4) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSONPojoConvertor$5) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.util.ajax.JSONPojoConvertor$3) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.AbstractBuffers$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpConnection$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.io.nio.SelectorManager$SelectSet$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpFields$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpFields$4) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpFields$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpFields$3) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.HttpFields$5) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.Request$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.deployer.ContextDeployer$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.nio.SelectChannelConnector$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.security.HashUserRealm$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.security.HashUserRealm$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.security.SecurityHandler$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.security.SecurityHandler$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.security.SslSocketConnector$SslConnection$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.servlet.HashSessionManager$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.jetty.servlet.HashSessionManager$2) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.resource.JarResource$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] warning: Ignoring InnerClasses attribute for an anonymous inner class
[java] (org.mortbay.xml.XmlParser$Node$1) that doesn't come with an
[java] associated EnclosingMethod attribute. This class was probably produced by a
[java] compiler that did not target the modern .class file format. The recommended
[java] solution is to recompile the class from source, using an up-to-date compiler
[java] and without specifying any "-target" type options. The consequence of ignoring
[java] this warning is that reflective operations on this class will incorrectly
[java] indicate that it is not an inner class.
[java] 1 error; aborting
[java] [RunMultidex] ERROR: DX returned an error code
[java] [RunMultidex] Task errored in 46.04 seconds

BUILD FAILED
C:\Users\Alwin\Downloads\appinventor-sources\appinventor\build.xml:22: The following error occurred while executing this line:
C:\Users\Alwin\Downloads\appinventor-sources\appinventor\buildserver\build.xml:204: Java returned: 1

Total time: 1 minute 36 seconds

C:\Users\Alwin\Downloads\appinventor-sources\appinventor>`

You will need to switch to compiling with Java 11.