Unable to resolve dependency Android Studio 3.0

前端 未结 10 494
一整个雨季
一整个雨季 2020-12-04 21:38

It\'s good to have a Updated Android Studio 3.0. But I am facing a problem with Android Studio 3.0, I just created a new project in

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 22:30

    After some research I have solved this issue.

    Step 1-:

    I disable the Gradle offline work in settings.

    File > Settings > Build, Execution, Deployment > Gradle > Uncheck Offline Work

    Step 2-:

    Then, I just changed compile 'com.facebook.android:account-kit-sdk:4.+' to api 'com.facebook.android:account-kit-sdk:4.+'

    I don't know exactly why it's work. I see api in docs Reference

    Now it works :)

    EDIT -

    Now, I am able to use both api or implementation and everything works fine.

    Thanks,

提交回复
热议问题