Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build failed: Unable to find facebook-core:5.11.1 #357

Closed
5 tasks done
hungweng opened this issue Nov 22, 2019 · 44 comments
Closed
5 tasks done

Android build failed: Unable to find facebook-core:5.11.1 #357

hungweng opened this issue Nov 22, 2019 · 44 comments
Labels

Comments

@hungweng
Copy link

hungweng commented Nov 22, 2019

Checklist

Environment

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

  • Unity Editor Version: 2019.2.10f1
  • Unity SDK Version: 7.18.0
  • Installation Platform & Verison: [Android]

Goals

What do you want to achieve?

Build successful.

Expected Results

What do you expect to happen?

Build successful without error.

Actual Results

What actually happened? Can you provide a stack trace?

Build failed with an exception:
Could not find com.facebook.android:facebook-core:5.11.1.

373: [Unity] ERROR:
374: [Unity] ERROR: FAILURE: Build failed with an exception.
375: [Unity] ERROR:
376: [Unity] ERROR: * What went wrong:
377: [Unity] ERROR: Could not determine the dependencies of task ':preReleaseBuild'.
378: [Unity] ERROR: > Could not resolve all task dependencies for configuration ':releaseRuntimeClasspath'.
379: [Unity] ERROR: > Could not find com.facebook.android:facebook-core:5.11.1.
380: [Unity] ERROR: Searched in the following locations:
381: [Unity] ERROR: - https://dl.google.com/dl/android/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
382: [Unity] ERROR: - https://dl.google.com/dl/android/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
383: [Unity] ERROR: - https://jcenter.bintray.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
384: [Unity] ERROR: - https://jcenter.bintray.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
385: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Temp/gradleOut/libs/facebook-core-5.11.1.jar
386: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Temp/gradleOut/libs/facebook-core.jar
387: [Unity] ERROR: - https://maven.google.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
388: [Unity] ERROR: - https://maven.google.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
389: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/Firebase/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
390: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/Firebase/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
391: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/GoogleSignIn/Editor/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
392: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/GoogleSignIn/Editor/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
393: [Unity] ERROR: - https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
394: [Unity] ERROR: - https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
395: [Unity] ERROR: - file:/BUILD_PATH/.m2/repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
396: [Unity] ERROR: - file:/BUILD_PATH/.m2/repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
397: [Unity] ERROR: - https://repo.maven.apache.org/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
398: [Unity] ERROR: - https://repo.maven.apache.org/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
399: [Unity] ERROR: Required by:
400: [Unity] ERROR: project :
401: [Unity] ERROR: > Could not find com.facebook.android:facebook-core:5.11.1.
402: [Unity] ERROR: Searched in the following locations:
403: [Unity] ERROR: - https://dl.google.com/dl/android/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
404: [Unity] ERROR: - https://dl.google.com/dl/android/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
405: [Unity] ERROR: - https://jcenter.bintray.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
406: [Unity] ERROR: - https://jcenter.bintray.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
407: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Temp/gradleOut/libs/facebook-core-5.11.1.jar
408: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Temp/gradleOut/libs/facebook-core.jar
409: [Unity] ERROR: - https://maven.google.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
410: [Unity] ERROR: - https://maven.google.com/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
411: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/Firebase/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
412: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/Firebase/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
413: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/GoogleSignIn/Editor/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
414: [Unity] ERROR: - file:/BUILD_PATH/jaffa-jam.moon-bounce.android-release/Assets/GoogleSignIn/Editor/m2repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
415: [Unity] ERROR: - https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
416: [Unity] ERROR: - https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
417: [Unity] ERROR: - file:/BUILD_PATH/.m2/repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
418: [Unity] ERROR: - file:/BUILD_PATH/.m2/repository/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
419: [Unity] ERROR: - https://repo.maven.apache.org/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.pom
420: [Unity] ERROR: - https://repo.maven.apache.org/maven2/com/facebook/android/facebook-core/5.11.1/facebook-core-5.11.1.jar
421: [Unity] ERROR: Required by:
422: [Unity] ERROR: project : > com.facebook.android:facebook-applinks:5.11.1
423: [Unity] ERROR: project : > com.facebook.android:facebook-login:5.11.1
424: [Unity] ERROR: project : > com.facebook.android:facebook-share:5.11.1
425: [Unity] ERROR: project : > com.facebook.android:facebook-login:5.11.1 > com.facebook.android:facebook-common:5.11.1

Current workaround for me is modify the dependencies file
from

    <androidPackage spec="com.facebook.android:facebook-core:[5,6)" />
    <androidPackage spec="com.facebook.android:facebook-applinks:[5,6)" />
    <androidPackage spec="com.facebook.android:facebook-login:[5,6)" />
    <androidPackage spec="com.facebook.android:facebook-share:[5,6)" />

to

    <androidPackage spec="com.facebook.android:facebook-core:5.11.0" />
    <androidPackage spec="com.facebook.android:facebook-applinks:5.11.0" />
    <androidPackage spec="com.facebook.android:facebook-login:5.11.0" />
    <androidPackage spec="com.facebook.android:facebook-share:5.11.0" />
@hungweng hungweng added the bug label Nov 22, 2019
@waiyan123
Copy link

I got the same issue in android studio. This might be a new issue from facebook SDK. Please help.

@vng-anh
Copy link

vng-anh commented Nov 22, 2019

I got the same issue.

@JuanDeLeon
Copy link

I just started getting this as well. Tried to update all tools/etc, no luck.

@pyaesone-wm
Copy link

Please update if found solution

@GrsnChml
Copy link

me too

1 similar comment
@zzsuzuki99
Copy link

me too

@tansuangai2008
Copy link

Configure project :AppCommon
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

CONFIGURE SUCCESSFUL in 9s
ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1
Show in Project Structure dialog
Affected Modules: AppCommon

@Navneet7k
Copy link

i just updated to 5.11.0 and the issue is gone

@pyaesone-wm
Copy link

pyaesone-wm commented Nov 22, 2019

yeah you need to update [5,6) to 5.11.0 . After changing this, it will OK. ( clear cache and rebuild )

@phyuthinkyi
Copy link

I got the same issue in Android Studio.
ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1

@Nitingadhiya
Copy link

implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
it's worked!!

@pyaesone-wm
Copy link

We missed. In above question, there is already solution.

@phyuthinkyi
Copy link

I changed
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
But I have this issue ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1

@pyaesone-wm
Copy link

I changed
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
But I have this issue ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1

Clear cache and Sync gradle and rebuild

@phyuthinkyi
Copy link

I changed
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
But I have this issue ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1

Clear cache and Sync gradle and rebuild

@pyaesone-wm can I contact you to fix this error.

@vhungn
Copy link

vhungn commented Nov 22, 2019

TEMP fixbug: node_modules/react-native-fbsdk/android/build.gradle
change from:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,6.0["
to:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,5.11.0["
===---> rebuild

@anikesh12
Copy link

I have also same issue ,
but it can be solved by changing the dependency version from 5.11.1 to 5.11.0
and the issue will be no more

@phyuthinkyi
Copy link

TEMP fixbug: node_modules/react-native-fbsdk/android/build.gradle
change from:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,6.0["
to:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,5.11.0["
===---> rebuild

It's worked! Thank You.

@waiyan123
Copy link

Well done guys, Thank you.

@pyaesone-wm
Copy link

I changed
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
But I have this issue ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1

Clear cache and Sync gradle and rebuild

@pyaesone-wm can I contact you to fix this error.

yeah you can

@sumitkcloudpanel
Copy link

TEMP fixbug: node_modules/react-native-fbsdk/android/build.gradle
change from:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,6.0["
to:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,5.11.0["
===---> rebuild

@sumitkcloudpanel
Copy link

it is working, try it guys

@ArpitAwasthiQV
Copy link

5.11.0 is working

@Priya0325
Copy link

Priya0325 commented Nov 22, 2019

5.11.0 is working fine

@javadeveloperyogesh
Copy link

change to:
implementation 'com.facebook.android:facebook-login:5.11.0'
Working

@Lonvik
Copy link

Lonvik commented Nov 22, 2019

Facebook is really rubbish

@leonsoh
Copy link

leonsoh commented Nov 22, 2019

This work in React Native for now
node_modules/react-native-fbsdk/android/build.gradle

Set this from
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,6.0["

To
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,5.11.0["

@Jatin9098
Copy link

I have got the same issue. I have used below dependancy

implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

just change it to

implementation 'com.facebook.android:facebook-android-sdk:5.11.0'

the issue is gone.

@Akeel91
Copy link

Akeel91 commented Nov 22, 2019

just change FB dependency to 5.11.0 instead of 5.11.1

@aditigodse
Copy link

FB latest update 5.11.1 is buggy, 5.11.0 is stable one.

@ghost
Copy link

ghost commented Nov 22, 2019

I have used below dependancy

implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

just replace it with

implementation 'com.facebook.android:facebook-android-sdk:5.11.0'

that dependency issue resolved.

@wgheng
Copy link

wgheng commented Nov 22, 2019

Now the latest version in maven central repository is 5.11.0. Why Android Studio show me "ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1" ?

@cbpatel
Copy link

cbpatel commented Nov 22, 2019

I have also same issue ,
but it can be solved by changing the dependency version from 5.11.1 to 5.11.0
and the issue will be no more

not working...pls mentioned all dependencies changed version from gradle file

@Shyamyaduwanshi-desired

I was facing same issue
it solved by changing the dependency version from 5.11.1 to 5.11.0

@jakks-team
Copy link

jakks-team commented Nov 22, 2019

TEMP fixbug: node_modules/react-native-fbsdk/android/build.gradle
change from:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,6.0["
to:
def DEFAULT_FACEBOOK_SDK_VERSION = "[5.0,5.11.0["
===---> rebuild

Something similar to this fixed mine.
Just find the def DEFAULT_FACEBOOK_SDK_VERSION thingy, change the "[5.0,6.0[" to "[5.0,5.11.0["
Mine was
def FACEBOOK_SDK_VERSION = safeExtGet('facebookSdkVersion', '[5.0,6.0[')
changed it to
def FACEBOOK_SDK_VERSION = safeExtGet('facebookSdkVersion', '[5.0,5.11.0[')

Rebuild, and temporarily working...
Waiting for FB to solve the case totally...

Also, for people who have safeExtGet('facebookSdkVersion', ...) in their react-native-fbsdk, you can also follow the solution I provided on another similar issue so that you won't be editing node_modules thing, and can share with your other team member via SVN/GIT etc.

@cbpatel
Copy link

cbpatel commented Nov 22, 2019

I was facing same issue
it solved by changing the dependency version from 5.11.1 to 5.11.0

Required by:
project :react-native-fbsdk > com.facebook.android:facebook-login:5.11.1
project :react-native-fbsdk > com.facebook.android:facebook-share:5.11.1
project :react-native-fbsdk > com.facebook.android:facebook-common:5.11.1

Could not find com.facebook.android:facebook-core:5.11.1.

after updating this type of error showing in react native
pls help me

@vishalpatel1327
Copy link

If you guys can't handle one library (worst in the world that have no uniformity ) please leave facebook / earth 😆

@alex9153
Copy link

alex9153 commented Nov 22, 2019

few minutes ago all was fine and now I have same error. Stupid facebook

@skyscrapy
Copy link

skyscrapy commented Nov 22, 2019

NOTE! 5.11.0 has a critical bug that maxSdkVersion="18" was imposed to your main project!!!

@Leuconoe
Copy link

30 minutes before, there was no build problem!
it's to Hard..

@Leuconoe
Copy link

NOTE! 5.11.0 has a critical bug that maxSdkVersion="18" was imposed to your main project!!!

What version should I use?

@jakks-team
Copy link

NOTE! 5.11.0 has a critical bug that maxSdkVersion="18" was imposed to your main project!!!

It IS better to have a maxSdkVersion imposed and the project running, instead of the project doesn't run at all.
Unless you could provide a running solution that can solve the problem and make other's project running with latest version, you are not providing a solution but just stating obvious fact.

Most of us know that keep using older version isn't a permanent solution! (Yes, some people don't know that)
But unless we can run our projects, it is useless to keep up with the latest version.

@kasim444
Copy link

I'm having the same problem. But ios not having problems.

@KylinChang
Copy link
Contributor

Hi all, there was an issue in v5.11.1 and v5.11.2 is released. Close the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests