android studio library of ftp fail to import
android studio library of ftp fail to import
After i put commons-net3.3 into libs, but i still cannot import
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
is there any step i have missed?
2 Answers
2
i solved in this way:
copy commons-net-3.3.jar in libs folder of you app, after
Open File->ProjectStructure->Dependencies, on bottom plus button add "File dependency" and select the library.
Now you should be able to import library class in your activity.java properly
Just add into gradle
dependencies
implementation 'org.kie.modules:org-apache-commons-net:6.5.0.Final'
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Comments
Post a Comment