android studio library of ftp fail to import

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

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

Popular posts from this blog

Executable numpy error

PySpark count values by condition

Mass disable jenkins jobs