unable to reference com.facebook.widget.LoginButton

三世轮回 提交于 2019-12-01 12:23:57

The project you're working on... have you imported the Facebook SDK and added the library to your current project? (right click > Project > Android > Add... button in library section). Or check your Java build path -> Order and Export and make sure the facebook library is checked.

If you have, then it should work..., if you haven't, add the library and it should work.

Also, make sure under Android dependencies > facebooksdk.jar, that you see com.facebook.widget.LoginButton.

If it's still not working, try deleting the facebook library, re-adding it, close and restart Eclipse.

I am not sure from where you got this component from... because the login button component starts with

<com.facebook.widget.LoginButton
        .... />

just change the component name to it, it should work. give me a feedback otherwise, happy programming

see that you have added the facebook SDK from properties->Android->Add library project and not in the build path.

This should solve the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!