Failed to import Facebook SDK after successful import

I am trying to import facebook sdk libraries into my android project and I have successfully imported them. Now I want to import the facebook sdk classes into my project, but I cannot import them. What is the problem? What am I doing wrong? And when I checked again that fb sdk was added or not, I see this error . Please help me if I am wrong.

I don’t know if this is good, but I uploaded the video on youtube and shared the link here, sorry for the poor quality of the video, but this is only 25 second video.

+4
source share
5 answers

hacked it after hours of frustration ....

Well it is. stand on FaceBook Project, which you created according to the instructions of the developers faceBook. right-click and select properties, select android and select the android API from the list, click "Apply" and "OK." clean the project and make sure the error is gone. now it's time to go to your project, right-click and select properties. go to Android, click the "Add" button and select the faceBook project. click on the button and ok. clean projects just for good luck. and now you can finally impose com.facebook!

hope this saves some bad time for the programmer in the future.

+2
source

you should follow these steps and facebook manual

0
source

Your sdk and your project should be in the same path. If the library will not be loaded properly. Make sure your project is on the same path as your facebook sdk. Or copy sdk to the same folder of your project, and then load it as a library.

0
source

The problem is that the SDK for Facebook still remains in the C: / Downloads folder. You need to put it in your Eclipse workspace and then import it. It worked for me!

0
source

I ran into a similar problem. My project workspace was in a different directory, and the SDK in another and based on textbooks, I preferred to save them that way. The solution is to incorporate the Facebook SDK into your project building path. You can do this in the properties or click the error icons> organize the import, and it should automatically provide you with the ability to add the SDK (if found) to your build path. That should work!

0
source

Source: https://habr.com/ru/post/1432236/


All Articles