2016-10-06 120 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 –