Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Cordova 4.2 issue with Facebook Connect - Error: java: package com.facebook does not exist #969

Open lordlaw opened 9 years ago

lordlaw commented 9 years ago

i clone the plugin and install from local computer as instructed.

then i try to run the application. it does not pass the compiling with errors.

Error:(28, 20) java: package com.facebook does not exist

i am using cordova with android studio

little info : i browse in to the project folder, found that the plugin location at project_folder/platform/android/com.phonegap.plugins.facebookconnect

i am not sure is this where it suppose to be ?

lordlaw commented 9 years ago

Is there anyone can provide advice ?

lordlaw commented 9 years ago

Got this error now... Could not find class 'com.facebook.FacebookOperationCanceledException', referenced from method org.apache.cordova.facebook.ConnectPlugin.handleError Could not find class 'com.facebook.widget.FacebookDialog$ShareDialogFeature[]', referenced from method org.apache.cordova.facebook.ConnectPlugin.execute Could not find class 'org.apache.cordova.facebook.ConnectPlugin$6', referenced from method org.apache.cordova.facebook.ConnectPlugin.execute Could not find class 'com.facebook.FacebookServiceException', referenced from method org.apache.cordova.facebook.ConnectPlugin.getErrorResponse Could not find class 'com.facebook.UiLifecycleHelper', referenced from method org.apache.cordova.facebook.ConnectPlugin.initialize Could not find class 'org.apache.cordova.facebook.ConnectPlugin$3', referenced from method org.apache.cordova.facebook.ConnectPlugin.onActivityResult

"You can now use the plugin right away" is not helping at all....

ammoto commented 9 years ago

I am getting this same error.

sharadgupta7 commented 9 years ago

I am also getting the same error. Tried so many things but not able to solve. Please help

domebarr commented 8 years ago

Hello everybody. I'm also get this error: the import com.facebook cannot be resolved. Because in ConnectPlugin.java there are:

import com.facebook.AppEventsLogger; import com.facebook.FacebookDialogException; import com.facebook.FacebookException; import com.facebook.FacebookOperationCanceledException; import com.facebook.FacebookAuthorizationException; import com.facebook.FacebookRequestError; import com.facebook.FacebookServiceException; import com.facebook.Request; import com.facebook.Request.GraphUserCallback; import com.facebook.Response; import com.facebook.Session; import com.facebook.SessionState; import com.facebook.UiLifecycleHelper; import com.facebook.model.GraphObject; import com.facebook.model.GraphUser; import com.facebook.widget.FacebookDialog; import com.facebook.widget.WebDialog; import com.facebook.widget.WebDialog.OnCompleteListener;

I tried the following steps:

but in the right side there's not the FacebookLib. How solve this problem? Can someone help me? Thanks very much! Regards

ihpalash commented 8 years ago

Hello guy! Yes same thing is happening to me also. Any solution yet??

NAVI-91 commented 8 years ago

mouse hover any error in ConnectPlugin.java -> fix options -> add FacebookSdk

thats all.