Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
2019.2.10f1
7.18.0
[Android]
What do you want to achieve?
Build successful.
What do you expect to happen?
Build successful without error.
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" />
I got the same issue in android studio. This might be a new issue from facebook SDK. Please help.
I got the same issue.
I just started getting this as well. Tried to update all tools/etc, no luck.
Please update if found solution
me too
me too
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
i just updated to 5.11.0 and the issue is gone
yeah you need to update [5,6) to 5.11.0 . After changing this, it will OK. ( clear cache and rebuild )
I got the same issue in Android Studio.
ERROR: Failed to resolve: com.facebook.android:facebook-core:5.11.1
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
it's worked!!
We missed. In above question, there is already solution.
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
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
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.1Clear cache and Sync gradle and rebuild
@pyaesone-wm can I contact you to fix this error.
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
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
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.
Well done guys, Thank you.
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.1Clear cache and Sync gradle and rebuild
@pyaesone-wm can I contact you to fix this error.
yeah you can
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 is working, try it guys
5.11.0 is working
5.11.0 is working fine
change to:
implementation 'com.facebook.android:facebook-login:5.11.0'
Working
Facebook is really rubbish
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["
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.
just change FB dependency to 5.11.0 instead of 5.11.1
FB latest update 5.11.1 is buggy, 5.11.0 is stable one.
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.
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" ?
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
I was facing same issue
it solved by changing the dependency version from 5.11.1 to 5.11.0
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.
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
If you guys can't handle one library (worst in the world that have no uniformity ) please leave facebook / earth 😆
few minutes ago all was fine and now I have same error. Stupid facebook
NOTE! 5.11.0 has a critical bug that maxSdkVersion="18" was imposed to your main project!!!
android:maxSdkVersion="18" />
30 minutes before, there was no build problem!
it's to Hard..
NOTE! 5.11.0 has a critical bug that maxSdkVersion="18" was imposed to your main project!!!
What version should I use?
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.
I'm having the same problem. But ios not having problems.
Hi all, there was an issue in v5.11.1 and v5.11.2 is released. Close the issue now.
Most helpful comment
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
to
implementation 'com.facebook.android:facebook-android-sdk:5.11.0'
it's worked!!