I\'ve pretty much followed this guide to the letter, however, when the application is launched and the Facebook session should be created the app crashes. I\'m thinking the
I encountered the same issue when trying to run my app on Android versions before lollipop. After hours of searching and playing with libraries, I figured it was just because of the 65k function limit on versions before lollipop.
So before trying the above solution or any other solution, I recommend moving the facebook sdk initialize call later in the code and not in the onCreate method. In this way, if the issue was because of the 65k limit, you might get a NoClassDef found exception for another class.
To fix the 65k limit issue, just go through your libraries in build.gradle and remove any unused libraries. Also use just what is needes from the Google apis, especially Google play services. It will also help cleanup your app and reduce file size.
Just replace
YourProject\lib\android-support-v4.jar
with
facebook-android-sdk-x.xx.x\libs\android-support-v4.jar
where x.xx.x is the facebook sdk version, e.g. 3.21.0