2017-05-14 99 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