问题
I am trying to use the facebook sdk within my project, however keep receiving the following error:
The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar'
Has anyone experienced/resolved this problem?
Thanks
The errors are shown below:
The container 'Android Dependencies' references non existing library
'C:\Users\Mandip\facebook-android-sdk\facebook\bin\com_facebook_android.jar'
The method onClick(View) of type new View.OnClickListener(){} must
override a superclass
method FbDialog.java /com_facebook_android/src/com/facebook/android line
101 Java Problem
The method onServiceConnected(ComponentName, IBinder) of type
Facebook.TokenRefreshServiceConnection must override a superclass
method Facebook.java /com_facebook_android/src/com/facebook/android line
575
The method onServiceDisconnected(ComponentName) of type
Facebook.TokenRefreshServiceConnection must override a superclass
method Facebook.java /com_facebook_android/src/com/facebook/android line
581
The project cannot be built until build path errors are resolved.
回答1:
Try this way

回答2:
Is there a bin folder in the com_facebook_android project? If not, the Facebook SDK wasn't built. Go to Project->Build Automatically and enable it.
回答3:
For anyone who does come across this:
Go to: Project > Clean > Clean all projects.
This might not always work but for me whenever there is some kind of dependency error, during the project load (after creating a new project) I just do this and surprisingly it works.
回答4:
In my case the APK Builder build command was missing from the Eclipse .project file:
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments/>
</buildCommand>
回答5:
I had the similar problem while creating new projects for advance versions (say 4.4) in Eclipse. It automatically creates an appcompat library and adds as a reference to a new Android project for providing backward compatibility. The new project refers to appcompat.jar in bin folder and it does not exist, until appcompat library is built. I followed the below steps...
- Clean and build your appcompat library project. It creates bin folder and puts appcompat.jar in it.
- Clean and build your main project. Error is resolved.
Note: If you still don't get the bin/appcompat.jar than uncheck IsLibrary option in project properties, build and than check this option and clean build. It will do create bin/appcompat.jar and solve the issue.
回答6:
Here is what probably happened. You cleared a lot of projects including some Java libraries. Sometimes you may clear the entire workspace. This will kill jar files in their bin directories. You might have rebuild only your project. The problem is that you now have to rebuild the libraries in your workspace that you cleared. You will see that bin folder is no longer empty after that.
回答7:
In my case the files were in appcombat_v7/lib folder.
So what I did was to right-click the .jar files (there will be two files select android-support-v4.jar) and then select Build Path > Add to Build Path.
What this does is add this file to the Build Path (i.e it will add this file to the "bin folder") which will solve the problem.
来源:https://stackoverflow.com/questions/10248102/the-container-android-dependencies-references-non-existing-library-facebook-a