Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio not recognizing Facebook SDK

In build.gradle:

compile 'com.facebook.android:facebook-android-sdk:[4,5)'

In my code:

import com.facebook.AccessToken;
import com.facebook.AccessTokenTracker;
import com.facebook.login.LoginManager;

I don't think this was an issue before, but all of the sudden today it's saying "cannot resolve symbol" for all of the import statements and so lots of things in my code are now wrongly marked as errors, even though when I run my app it works fine. What could be causing this?

like image 478
user2322082 Avatar asked Sep 25 '26 01:09

user2322082


1 Answers

tools>android>sync project files with gradle files

like image 183
user2322082 Avatar answered Sep 26 '26 14:09

user2322082



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!