2017-05-14 68 views
0

我正在尝试将邮件,激活和aditionnal罐子添加到我的android工作室,以便在不使用内置邮件应用程序的情况下发送电子邮件。但是我在跑步时遇到了一个错误,我搜索了很多,没有任何帮助,我不知道问题到底是什么。有人可以帮忙吗?我正在使用android studio 2.2。 以下是我收到的错误添加罐子到android studio的错误

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.DataHandler$1) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$1) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$2) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$3) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$4) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 

以及更多错误。 任何人都可以帮忙请

回答

0

如果你读它说,它是使用不同的编译器编译,因此不支持。

这个类可能是由一个 编译器生成的,它没有针对现代.class文件格式。建议的 解决方案是使用最新的编译器 并且不指定任何“-target”类型选项,从源代码重新编译该类。忽略 这个警告的结果是,对这个类的反射操作将错误地 指示它是而不是的一个内部类。

我不知道你从哪里得到了你的jar文件,但我认为它不起作用。

+0

所以问题可能出现在我下载的罐子里? –

+0

是的,它是:http://stackoverflow.com/questions/36762834/getting-enclosingmethod-errors-on-building-in-android-studio-2 – creativecreatorormaybenot