2016-10-06 148 views
1

錯誤獲取FTPClient錯誤運行時項目

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

發佈您的應用級別gradle文件。 – Furqan

回答

1

你應該jar文件添加到項目的libs文件夾。另外,確保在訂單和導出標籤下選中它。

+0

在libs文件夾中編譯fileTree(dir:'libs',include:['* .jar']),ftp4j-1.6.1.jar –