Facebook build problem

My project named “dar” had no problems in building till yesterday.
It stopped to build about now.
Then I’ve created new empty project “dar2”, then importing step-by-step all additional packages I use in main “dar” project. Every build was successful till I’ve add sdkbox import facebook
The build error from console:

> Task :dar2:preReleaseBuild FAILED
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/androidsdk/modules/shield/unspecified/shield-unspecified.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/androidsdk/modules/shield/unspecified/shield-unspecified.jar]
Resource missing. [HTTP GET: https://jcenter.bintray.com/androidsdk/modules/shield/unspecified/shield-unspecified.pom]
Resource missing. [HTTP HEAD: https://jcenter.bintray.com/androidsdk/modules/shield/unspecified/shield-unspecified.jar]

:dar2:preReleaseBuild (Thread[Task worker for ':',5,main]) completed. Took 1.597 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':dar2:releaseCompileClasspath'.
> Could not find androidsdk.modules:shield:unspecified.
  Searched in the following locations:
      file:/C:/Develop/Android/android-sdk/extras/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.pom
      file:/C:/Develop/Android/android-sdk/extras/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.jar
      file:/C:/Develop/Android/android-sdk/extras/google/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.pom
      file:/C:/Develop/Android/android-sdk/extras/google/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.jar
      file:/C:/Develop/Android/android-sdk/extras/android/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.pom
      file:/C:/Develop/Android/android-sdk/extras/android/m2repository/androidsdk/modules/shield/unspecified/shield-unspecified.jar
      https://dl.google.com/dl/android/maven2/androidsdk/modules/shield/unspecified/shield-unspecified.pom
      https://dl.google.com/dl/android/maven2/androidsdk/modules/shield/unspecified/shield-unspecified.jar
      https://jcenter.bintray.com/androidsdk/modules/shield/unspecified/shield-unspecified.pom
      https://jcenter.bintray.com/androidsdk/modules/shield/unspecified/shield-unspecified.jar
  Required by:
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-core:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-common:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-login:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-share:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-places:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-applinks:5.15.2
      project :dar2 > com.facebook.android:facebook-android-sdk:5.15.2 > com.facebook.android:facebook-messenger:5.15.2

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

It stopped building just after facebook package was added.
The code is just empty project.
Any hint? Thank you.

Now I’ve checked my project two-days-old version: it successfully shares the screenshot via Facebook.

Changing in build.gradle version of used facebook sdk:
dependencies { compile 'com.facebook.android:facebook-android-sdk:5.12.0' }

4.34.0 - builds ok;
4.41.0 - builds ok;
5.12.0 - builds ok;
5.15.1 - builds ok;
5.15.2 - build fails;

https://github.com/facebook/facebook-android-sdk/blob/master/CHANGELOG.md says:

[5.15.2] - 2020-02-03
### Fixed
* Attempts to fix #665

“Houston we have a problem” ©
A small problem.

Also I don’t see facebook-places-5.15.2.aar in my ...\gradle\caches\...

Let’s ask @yinjimmy

This problem disappeared without fix: I’ve try to build the project with
dependencies { compile 'com.facebook.android:facebook-android-sdk:[5,6)' }
– builds successful without errors… But it does not use “5.15.2” libs/jars - mainly 5.15.1.
The reason:

Facebook SDK sdk-version-5.15.3
facebook-sdk-bot released this 15 hours ago

Seems Facebook has rolled-back libs by hotfix. Solved, fixed.
No need to disturb yinjimmy

It seems A mistake of FB. It’s great you solved it.

I want to code, I want to create games! :slight_smile:
Instead of that I have to waste a lot of time trying to make it work.
This is why I hate new lib versions.
This is why I use
com.google.android.gms:play-services-base:16.1.0 , but not the last
com.google.android.gms:play-services-base:17.1.0 – it’s not working for me.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.