facebook / facebook-android-sdk

Used to integrate Android apps with Facebook Platform.
https://developers.facebook.com/docs/android
Other
6.12k stars 3.65k forks source link

Feature Request: android.useAndroidX=false #1090

Open lUjek-Sh opened 2 years ago

lUjek-Sh commented 2 years ago

Checklist before submitting a feature request

Goals

Please update the library because there is a build error

Expected results

android.useAndroidX=false

Code samples & details

Your project has set `android.useAndroidX=true`, but configuration `:app:debugRuntimeClasspath` still contains legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set `android.enableJetifier=true` in the `gradle.properties` file to migrate your project to AndroidX (see https://developer.android.com/jetpack/androidx/migrate for more info).
The following legacy support libraries are detected:
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-core:6.5.1 -> com.android.support:support-annotations:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-core:6.5.1 -> com.android.support:support-core-utils:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:collections:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1 -> android.arch.lifecycle:common:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1 -> android.arch.core:common:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-media-compat:28.0.0 -> com.android.support:versionedparcelable:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-core:6.5.1 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:documentfile:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1 -> android.arch.core:runtime:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1 -> android.arch.lifecycle:livedata-core:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> android.arch.lifecycle:viewmodel:1.1.1
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-core:6.5.1 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:localbroadcastmanager:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-core:6.5.1 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:print:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-media-compat:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:customview:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:viewpager:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:coordinatorlayout:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:drawerlayout:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:slidingpanelayout:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:customtabs:28.0.0 -> com.android.support:interpolator:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:swiperefreshlayout:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:support-v4:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:asynclayoutinflater:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:cursoradapter:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-vector-drawable:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:animated-vector-drawable:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:cardview-v7:28.0.0
:app:debugRuntimeClasspath -> com.facebook.android:facebook-login:6.5.1 -> com.facebook.android:facebook-common:6.5.1 -> com.android.support:customtabs:28.0.0
joesus commented 2 years ago

It looks like this is using 6.5.1. Are you able to verify this happens on the latest version 14.1.0?

lUjek-Sh commented 2 years ago

I use version 14.1.0 My dependencies implementation 'com.facebook.android:facebook-android-sdk:14.1.0'

joesus commented 2 years ago

Can you reproduce in a sample project? It does not make sense without more information. The error mentions 6.5.1 so that much be included somehow.

joesus commented 2 years ago

This likely has to do with another dependency. Do any of these look familiar? https://mvnrepository.com/artifact/com.facebook.android/facebook-login/6.5.1/usages

lUjek-Sh commented 2 years ago

This likely has to do with another dependency. Do any of these look familiar? https://mvnrepository.com/artifact/com.facebook.android/facebook-login/6.5.1/usages

This https://mvnrepository.com/artifact/com.facebook.android/facebook-android-sdk