InvalidPackage: Package not included in Android ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: java.applet. Referenced from groovyjarjaropenbeans.Beans. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: java.awt.event. Referenced from groovyjarjarantlr.debug.misc.ASTFrame.1. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: java.awt. Referenced from groovyjarjarantlr.debug.misc.ASTFrame. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: java.lang.invoke. Referenced from org.codehaus.groovy.classgen.asm.indy.InvokeDynamicWriter. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: javax.swing.event. Referenced from groovyjarjarantlr.debug.misc.ASTFrame.MyTreeSelectionListener. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: javax.swing.text. Referenced from org.codehaus.groovy.antlr.LexerFrame. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: javax.swing.tree. Referenced from groovyjarjarantlr.debug.misc.ASTFrame.MyTreeSelectionListener. ../../../../../../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.0/341909a61c1d9bd25ead469dbe7d23a4542d14e5/groovy-2.4.0-grooid.jar: Invalid package reference in library; not included in Android: javax.swing. Referenced from groovyjarjarantlr.debug.misc.ASTFrame. Priority: 6 / 10 Category: Correctness Severity: Error Explanation: Package not included in Android. This check scans through libraries looking for calls to APIs that are not included in Android. When you create Android projects, the classpath is set up such that you can only access classes in the API packages that are included in Android. However, if you add other projects to your libs/ folder, there is no guarantee that those .jar files were built with an Android specific classpath, and in particular, they could be accessing unsupported APIs such as java.applet. This check scans through library jars and looks for references to API packages that are not included in Android and flags these. This is only an error if your code calls one of the library classes which wind up referencing the unsupported package. More info: To suppress this error, use the issue id "InvalidPackage" as explained in the Suppressing Warnings and Errors section.