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

Gradle build fails on 5.15.2

Open DouweBos opened this issue 6 years ago • 7 comments

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Kotlin Version: 1.3.61
  • Installation Platform & Version: Gradle version 6.1.1

* What went wrong:
Could not determine the dependencies of task ':reelgood:compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':reelgood:releaseCompileClasspath'.
   > Could not find androidsdk.modules:shield:unspecified.
     Required by:
         project :reelgood > com.facebook.android:facebook-login:5.15.2
         project :reelgood > com.facebook.android:facebook-core:5.15.2
         project :reelgood > com.facebook.android:facebook-common:5.15.2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

DouweBos avatar Feb 03 '20 22:02 DouweBos

I'm seeing essentially the same problem.

NicholasMiller avatar Feb 03 '20 23:02 NicholasMiller

Also seeing this exact problem.

Forcing facebookSdkVersion = "5.15.1" works

romanbb avatar Feb 04 '20 00:02 romanbb

Hi all, v5.15.3 should work.

KylinChang avatar Feb 04 '20 00:02 KylinChang

Thanks @KylinChang it does solve the issue. Will there be an official tagged release for this version?

romanbb avatar Feb 04 '20 00:02 romanbb

For react-native developers (using react-native-fbsdk) who are facing the same problem @romanbb solution can be implemented by updating the root build.gradle in the following location.

buildscript {
    ext {
        ...
        facebookSdkVersion = '5.15.3'
    }
    ...
}

gitumarkk avatar Feb 04 '20 02:02 gitumarkk

@gitumarkk solution didn't work in my react-native 0.61 project. Here's the relevant fix I used in my app build.gradle

dependencies {
    implementation 'com.facebook.android:facebook-android-sdk:5.15.3'
}

rthomazel avatar Feb 04 '20 13:02 rthomazel

Hi @romanbb , v5.15.3 is the same as v5.15.2. Close the task.

KylinChang avatar Feb 04 '20 18:02 KylinChang