android - Facebook setInitialize is deprecated but removing it causes inflating error -


as suggested here:

the facebook sdk auto initialized on application start. if using facebook sdk in main process , don't need callback on sdk initialization completion can remove calls facebooksdk.sdkinitialize. if need callback, should manually invoke callback in code.

facebook.setinitalizer(context) deprecated. problem when remove line: facebook.setinitalizer(context) suggested inflating error on: com.facebook.login.widget.loginbutton:

<com.facebook.login.widget.loginbutton     android:id="@+id/signin_activity_login_button_fb"     android:layout_width="240dp"     android:layout_height="wrap_content"     ... /> 

error:

android.view.inflateexception: binary xml file line #22: binary xml file line #22: error inflating class com.facebook.login.widget.loginbutton 

when return initalizer error gone. should do.

also gradle:

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


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -