Now it works with versions 8 and 9. Yesterday, when I checked on Maven Central Repository, the Facebook SDK was missing the older versions from the version list. Now I can see all the previous versions. And I can build the APK with older versions as well.