Android GmailSender集成的Gradle错误

Android GmailSender集成的Gradle错误,android,android-gradle-plugin,jakarta-mail,email,Android,Android Gradle Plugin,Jakarta Mail,Email,我正试着把这个和我的结合起来 我把所有的罐子都进口了。我可以毫无错误地重建项目。但当我尝试在手机上安装应用程序时,Gradle构建时,出现了280个错误。最后,我收到了消息BUILD SUCCESSFUL,应用程序在手机上正常运行(即使我没有收到邮件,但这是另一个问题) 这是我的Gradle控制台显示的内容: AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymo

我正试着把这个和我的结合起来

我把所有的罐子都进口了。我可以毫无错误地重建项目。但当我尝试在手机上安装应用程序时,Gradle构建时,出现了280个错误。最后,我收到了消息BUILD SUCCESSFUL,应用程序在手机上正常运行(即使我没有收到邮件,但这是另一个问题)

这是我的Gradle控制台显示的内容:

    AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses     attribute for an anonymous inner class","sources":[{}]}
    AGPBI: {"kind":"error","text":"(com.sun.mail.imap.IMAPFolder$13) that doesn\u0027t come with an","sources":[{}]}
    AGPBI: {"kind":"error","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
    AGPBI: {"kind":"error","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
    AGPBI: {"kind":"error","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
    AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
    AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
    AGPBI: {"kind":"error","text":"(com.sun.mail.imap.IMAPFolder$1) that doesn\u0027t come with an","sources":[{}]}
    AGPBI: {"kind":"error","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
    AGPBI: {"kind":"error","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
    AGPBI: {"kind":"error","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
    AGPBI: {"kind":"error","text":"and without specifying any \"-target\" type options. The consequence of ignoring","sources":[{}]}
    AGPBI: {"kind":"error","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}
    AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
    AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
    AGPBI: {"kind":"error","text":"(com.sun.mail.imap.IMAPFolder$10) that doesn\u0027t come with an","sources":[{}]}
还有更多

但是当我在活动中删除sendmail()方法时,错误就会消失

我希望有人能帮助我,提前谢谢你

对不起,如果我犯了一些英语错误


编辑:JavaMail包的更新修复了我的问题。

您正在使用的项目非常旧。您可能想试用的官方版本。@BillShannon我已经用您的软件包更新了软件包,它解决了我的问题。非常感谢。