LoginButton with native Fragment

后端 未结 5 1525
太阳男子
太阳男子 2021-01-17 20:10

I\'m trying to implement the Facebook LoginButton using the tutorial here https://developers.facebook.com/docs/android/login-with-facebook/v2.0#step2

The problem is

5条回答
  •  無奈伤痛
    2021-01-17 20:33

    Add this below in you build.gradle file

    dependencies {
        compile 'com.android.support:support-v4:+'
    }
    

    Then import android.support.v4.app.Fragment instead of the native fragment.

提交回复
热议问题