macdonst / FtpClient

Other
9 stars 18 forks source link

The plugin doesn't work with Cordova 2.3.0 #1

Open ilPas opened 11 years ago

ilPas commented 11 years ago

I have tried to install this plugin in my Android application on Eclipse but there are those problems:

Description Resource Path Location Type PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 44 Java Problem The method execute(String, JSONArray, String) of type FtpClient must override or implement a supertype method FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 44 Java Problem PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 45 Java Problem PluginResult cannot be resolved to a variable FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 45 Java Problem PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 59 Java Problem PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 61 Java Problem PluginResult cannot be resolved to a variable FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 61 Java Problem PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 63 Java Problem PluginResult cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 65 Java Problem PluginResult cannot be resolved to a variable FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 63 Java Problem PluginResult cannot be resolved to a variable FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 65 Java Problem The import com.phonegap.api cannot be resolved FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 27 Java Problem The import com.phonegap.api cannot be resolved FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 28 Java Problem The import com.phonegap.api cannot be resolved FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 29 Java Problem Plugin cannot be resolved to a type FtpClient.java /Backup1/src/com/phonegap/plugins/ftpclient line 31 Java Problem

macdonst commented 11 years ago

Pushed an updated. Try it on 2.2.0+. If it works close this issue.

ilPas commented 11 years ago

Hi Simon! I try it with 2.2.0 but when i launched the application Eclipse returned this errors: [2013-01-21 10:12:07 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/cordova/AccelListener$1; [2013-01-21 10:12:07 - AppName] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/cordova/AccelListener$1;

I have follows yours instructions but doesn't works... :( I have also cleaned the project and rebuild tha app but nothing!

macdonst commented 11 years ago

It looks like you have two copies of cordova.jar in your libs folder.

singh-sta commented 11 years ago

same problem here in my project but there is only one cordova .jar in libs folder

WillRibeiro commented 10 years ago

look at: NameProject > assets > www > .jar and NameProject > libs > .jar

there is the problem if u have two copies of cordova, i have this problem today, and the solution of macdonst have solved here =)