The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar'

70,665

Solution 1

Try this way

how to make Library

Solution 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.

Solution 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.

Solution 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>

Solution 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...

  1. Clean and build your appcompat library project. It creates bin folder and puts appcompat.jar in it.
  2. 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.

Share:
70,665

Related videos on Youtube

user983965
Author by

user983965

Updated on June 23, 2020

Comments

  • user983965
    user983965 almost 4 years

    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.

    • ValayPatel
      ValayPatel about 12 years
      check your project setting... I am sure you can fix this... Or may be build automatic is off...
    • user983965
      user983965 about 12 years
      I have checked the 'facebook-android-sdk\facebook\bin\com_facebook_android.jar' the jar file doesn't exist, I tried downloading the SDK on several attempts and still the same error
    • ValayPatel
      ValayPatel about 12 years
      Did you check Android Properties of your project..?? below android build target version you can find Is Library check box... if that is not checked than check it.. Let me know if this is blocking you??
  • user983965
    user983965 about 12 years
    Thanks Valay, it appears the SDK has errors within the java code, I have pasted the error above. In addtion, I have tried Is Library to no success.
  • Umesh
    Umesh over 11 years
    The same thing was happened with me. while I was trying build my project the bin folder from sdk becomes empty.So you must have re-build sdk again.
  • david72
    david72 about 7 years
    Your answer helped me - after doing 1 clean and number of times "build all" my project did build all the subprojects