facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

[BREAKING ALL CLIENT BUILDS] All versions before 18.1.3 removed from Maven central metadata file

Open jtdaugh opened this issue 4 months ago • 63 comments

Checklist before submitting a bug report

Java version

N/A

Android version

N/A

Android SDK version

N/A

Installation platform & version

Maven

Package

Core & AppEvents

Goals

Install facebook-android-sdk dependencies via gradle+maven

Expected results

version 16.* to be available via maven for my gradle-built android app.

Actual results

The maven-metadata file lists no previous versions, only 18.1.3, despite other versions of course being available.

This is causing dependency resolution to fail in our app.

This issue began around 2pm PT today.

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE

jtdaugh avatar Jul 30 '25 01:07 jtdaugh

Same issue +1

rajeshias avatar Jul 30 '25 02:07 rajeshias

https://repo.maven.apache.org/maven2/com/facebook/android/facebook-android-sdk/maven-metadata.xml

According to the metadata last updated time

This bug must be active from July 29, 2025, 8:57:41 PM UTC

rajeshias avatar Jul 30 '25 02:07 rajeshias

Same issue, this broke our android builds this afternoon

MurraySmith27 avatar Jul 30 '25 03:07 MurraySmith27

Same issue

sean5940 avatar Jul 30 '25 03:07 sean5940

same issue

dickyfithub avatar Jul 30 '25 04:07 dickyfithub

implementation 'com.facebook.android:facebook-android-sdk:18.+'

shiponmvn avatar Jul 30 '25 04:07 shiponmvn

same issue

Flutter-DoHyunKim avatar Jul 30 '25 05:07 Flutter-DoHyunKim

Happening to react native building android as well with package like react-native-fbsdk-next which has dependency on this. Initially I thought it's the issue of that package until I found this thread.

jeffreycgy avatar Jul 30 '25 06:07 jeffreycgy

This is major. It's blocking all of our app releases.

dctopspin avatar Jul 30 '25 06:07 dctopspin

same

Kwonkunkun avatar Jul 30 '25 07:07 Kwonkunkun

Are you writing code with your feet?

Laughing-Hao avatar Jul 30 '25 07:07 Laughing-Hao

https://repo.maven.apache.org/maven2/com/facebook/android/facebook-android-sdk/maven-metadata.xml Since the last update, historical version data of the maven-metadata.xml was lost.

LimeVista avatar Jul 30 '25 07:07 LimeVista

Are you writing code with your feet?

TuanLe-Lihuhu avatar Jul 30 '25 08:07 TuanLe-Lihuhu

God bless him 🧖🏼

hoangledev avatar Jul 30 '25 08:07 hoangledev

It's affecting flutter releases.

aidendle94 avatar Jul 30 '25 08:07 aidendle94

same issue, Im using react native package

rokkoo avatar Jul 30 '25 08:07 rokkoo

Happening to react native building android as well with package like react-native-fbsdk-next which has dependency on this. Initially I thought it's the issue of that package until I found this thread.

same issue, relate with this comment

itokun99 avatar Jul 30 '25 08:07 itokun99

same issue

devSC avatar Jul 30 '25 08:07 devSC

same issues with Unity facebook SDK 17.0.1

MadheadKampfer avatar Jul 30 '25 08:07 MadheadKampfer

Are you writing code with your feet?

hieunguyenlihuhu avatar Jul 30 '25 08:07 hieunguyenlihuhu

I have fixed it for the Android part of my React Native project: node_modules-> react-native-fbsdk-next -> android -> build.gradle

Change this line to: def FACEBOOK_SDK_VERSION = safeExtGet('facebookSdkVersion', '18.1.3') '18.1.3' is the latest version of the facebook-android-sdk."

Vo-Huy-Khoa avatar Jul 30 '25 09:07 Vo-Huy-Khoa

Try specifying a fixed version like 17.0.2 instead of using a version range. This helps avoid resolution issues, especially since older versions might have been removed from the maven-metadata.xml. Our team is using the Unity engine and we were able to build successfully with this approach.

ex) implementation 'com.facebook.android:facebook-applinks:<YOUR_VERSION>'

kwondy0710 avatar Jul 30 '25 09:07 kwondy0710

Please fix this, my release is pending!!!!! My TL is sitting on my head.

HarshalPatilBharatNXT avatar Jul 30 '25 09:07 HarshalPatilBharatNXT

Please fix this, my release is pending!!!!! My TL is sitting on my head.

In your android/build.gradle

configurations.all {
    resolutionStrategy {
        force 'com.facebook.android:facebook-android-sdk:<YOUR-PROJECT-VERSION>' // skips checking broken metadata
    }
}

Add this snippet inside your allProjects{ ... } to skip metadata check,

This should work until they fix this issue!

rajeshias avatar Jul 30 '25 09:07 rajeshias

I have fixed it for the Android part of my React Native project: node_modules-> react-native-fbsdk-next -> android -> build.gradle

Change this line to: def FACEBOOK_SDK_VERSION = safeExtGet('facebookSdkVersion', '18.1.3') '18.1.3' is the latest version of the facebook-android-sdk."

Bro saved my day, my TL now happy

ting0608 avatar Jul 30 '25 09:07 ting0608

From this - implementation 'com.facebook.android:facebook-android-sdk:[17.0,18.0)' To this - implementation 'com.facebook.android:facebook-android-sdk:[17.0,19.0)' also change in android/app/build.gradle to (18.1.3) implementation 'com.facebook.android:facebook-android-sdk:18.1.3'

This worked for me.

HarshalPatilBharatNXT avatar Jul 30 '25 09:07 HarshalPatilBharatNXT

Hey, facebook, did your billions make you miss that someone deleted all the old versions from the metadata? 🤣🤣🤣

fastie4 avatar Jul 30 '25 10:07 fastie4

Same. Please add old versions!

mitaxe avatar Jul 30 '25 11:07 mitaxe

Same. old ver 11.x has dead.

MeoMeww avatar Jul 30 '25 11:07 MeoMeww

If you are still on version 17, this will work:

implementation 'com.facebook.android:facebook-core:[17.0.2]'

Same applies to any version you used previously. You can find the valid versions here: https://repo.maven.apache.org/maven2/com/facebook/android/facebook-applinks/

The catalog doesn't have old versions which is used for automatic version resolving.

Nezz avatar Jul 30 '25 11:07 Nezz