I click on My Project -> Android Tools -> Add Support Library and get an error (which worked before I performed "Add Support Library")
I think that I have an issue with the Facebook SDK:
This is part of my mainActivity
:
Settings.addLoggingBehavior(LoggingBehavior.INCLUDE_ACCESS_TOKENS);
Session session = Session.getActiveSession();
if (session == null) {
if (savedInstanceState != null) {
session = Session.restoreSession(this, null, statusCallback, savedInstanceState);
}
if (session == null) {
session = new Session(this);
}
Session.setActiveSession(session);
if (session.getState().equals(SessionState.CREATED_TOKEN_LOADED)) {
session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));
}
}
In the line:
session.openForRead(**new Session.OpenRequest(this)**.setCallback(statusCallback));
it gives me an error:
The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files
Does someone know how to solve this issue?