GmailSender集成时出现Gradle错误

时间:2016-04-13 07:42:28

标签: android android-gradle javamail email-integration

我试图将此project整合到我的。{/ p>

我已经导入了所有jar。我可以重建项目而不会出错。但是当我尝试在手机上安装应用程序时,在Gradle Builds中,会出现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包的更新解决了我的问题。

0 个答案:

没有答案