Open Mecze opened 1 year ago
If I want to resolve them manually? Which ones do I have to download? Or better: what XX and YY means in 'com.facebook.android:facebook-applinks:[X.X, YY).'
With "com.facebook.android:facebook-applinks:[9.0, 10)." means it will download from 9.0 to 10.0? Does it means "9.1.1" which is the last one found under 10.0?
Same Issue +1 tried to remove jcenter() but still not working
Yeah!
For some odd reason, it still trying to resolver jcenter.
We did nothing! Friday was building and resolving facebook OK, and today it is not.
Our workaround for now is to remove facebook (we weren't using it for much) Also 14.1 is bugged as hell on Unity Editor.
exactly the same!!! Do you think this might be the reason? https://status.gradle.com/
+1 Same issue. Everything was working last week but Today we have issue on all facebook SDK versions
Facebook SDK 9.2.0
What went wrong: Could not determine the dependencies of task ':launcher:processDebugResources'. Could not resolve all task dependencies for configuration ':launcher:debugRuntimeClasspath'. Could not resolve com.facebook.android:facebook-applinks:[9.0, 10). Required by: project :launcher > project :unityLibrary Failed to list versions for com.facebook.android:facebook-applinks. Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml'. Read timed out
Facebook SDK 14.1
What went wrong: Could not determine the dependencies of task ':launcher:processReleaseResources'. Could not resolve all task dependencies for configuration ':launcher:releaseRuntimeClasspath'. Could not resolve com.facebook.android:facebook-applinks:[14.1, 15). Required by: project :launcher > project :unityLibrary Failed to list versions for com.facebook.android:facebook-applinks. Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml'. Read timed out
+1 same issue here, disabling facebook SDK is pretty much the only option we have right now. Did anyone found any workarounds?
Found out that JCenter is down right now
https://status.gradle.com/incidents/9740r6bzx438 https://stackoverflow.com/questions/74258160/is-jcenter-down-permanently-31-oct
*seems to be permanent (?)
We tested the following and it seems to be working: We are using Facebook SDK 14.1 and Unity 2020.3.38f1
Dependencies should be fetching from maven instead of jcenter which seems to be down.
About a day I am trying to build my project. No success. I was able to build normally a few days ago.
Unity version I am using: 2020.3.41f1 (on Windows 10) Building for platform: Android
Tried two Facebook SDK version 11.0.0 and the latest one 14.1.0
Here are build errors I am getting for each SDK version:
Build error with SDK version 11.0.0 used:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:processReleaseResources'.
> Could not resolve all task dependencies for configuration ':launcher:releaseRuntimeClasspath'.
> Could not resolve com.facebook.android:facebook-applinks:[11.0, 12).
Required by:
project :launcher > project :unityLibrary
> Failed to list versions for com.facebook.android:facebook-applinks.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml'.
> Read timed out
Build error with SDK version 14.1.0 used:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
> Could not resolve com.facebook.android:facebook-applinks:[14.1, 15).
Required by:
project :launcher > project :unityLibrary
> Failed to list versions for com.facebook.android:facebook-applinks.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-applinks/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
> Could not resolve com.google.code.gson:gson:2.8.8.
Required by:
project :launcher > project :unityLibrary > com.facebook.android:facebook-gamingservices:14.1.1
> Skipped due to earlier error
> Could not resolve com.google.code.gson:gson:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.8/gson-2.8.8.pom
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Skipped due to earlier error
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson-parent/2.8.8/gson-parent-2.8.8.pom
> Could not download oss-parent-7.pom (org.sonatype.oss:oss-parent:7): Skipped due to earlier error
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson-parent/2.8.8/gson-parent-2.8.8.pom
> Could not download oss-parent-7.pom (org.sonatype.oss:oss-parent:7): Skipped due to earlier error
> Could not resolve com.google.code.gson:gson:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.8/gson-2.8.8.pom
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Skipped due to earlier error
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson-parent/2.8.8/gson-parent-2.8.8.pom
> Could not download oss-parent-7.pom (org.sonatype.oss:oss-parent:7): Skipped due to earlier error
> Could not resolve com.google.code.gson:gson-parent:2.8.8.
> Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson-parent/2.8.8/gson-parent-2.8.8.pom
> Could not download oss-parent-7.pom (org.sonatype.oss:oss-parent:7): Skipped due to earlier error
Here is my project mainTemplate.gradle setup:
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each { project ->
project.repositories {
def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
maven {
url "https://maven.google.com"
}
maven {
url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/AuthDependencies.xml:20, Assets/Firebase/Editor/CrashlyticsDependencies.xml:20, Assets/Firebase/Editor/DatabaseDependencies.xml:22, Assets/Firebase/Editor/DynamicLinksDependencies.xml:20, Assets/Firebase/Editor/FunctionsDependencies.xml:20, Assets/Firebase/Editor/MessagingDependencies.xml:22, Assets/Firebase/Editor/StorageDependencies.xml:20
}
maven {
url "https://repo.maven.apache.org/maven2/" // Assets/GoogleMobileAds/Editor/AdColonyMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/AppLovinMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/InMobiMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/MetaAudienceNetworkMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/UnityMediationDependencies.xml:9, Assets/GoogleMobileAds/Editor/UnityMediationDependencies.xml:17
}
maven {
url "https://maven.google.com/" // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:17
}
maven {
url "https://sdk.tapjoy.com/" // Assets/GoogleMobileAds/Editor/TapjoyMediationDependencies.xml:8
}
maven {
url "https://dl.google.com/dl/android/maven2/" // Assets/GoogleMobileAds/Editor/AdColonyMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/AppLovinMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/InMobiMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/MetaAudienceNetworkMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/TapjoyMediationDependencies.xml:8, Assets/GoogleMobileAds/Editor/UnityMediationDependencies.xml:9
}
mavenLocal()
mavenCentral()
}
}
After doing a long research I made a conclusion, jcenter and bintray servers are outdated and shut down was planned a few months ago. I guess they have been finally shut down these servers.
Read many suggestions during research most of them say to use mavenLocal() mavenCentral() in mainTemplate.gradle and remove jcenter(), but as you can see I am doing that way.
Currently I don't have any quick fix for this and I guess some Facebook SDK components refer to deprecated jcenter and bintray servers in binary code level, so we can't change something and temporary fix the issue.
Also removing Library folder and re-generating it doesn't fix the issue.
I hope this time development and support teams will response faster and make fast fix and release.
We tested the following and it seems to be working: We are using Facebook SDK 14.1 and Unity 2020.3.38f1
- In Android Player Settings -> Publishing Settings enable Custom Base Gradle Template
- Open the new baseProjectTemplate.gradle file created in the Plugins/Android folder
- Replace both jcenter() with mavenCentral() like in the picture below
- Save and build again
Dependencies should be fetching from maven instead of jcenter which seems to be down.
Thank you for sharing your solution. I was able to build successfully. Let's see will everything function as expected or not.
We tested the following and it seems to be working: We are using Facebook SDK 14.1 and Unity 2020.3.38f1
- In Android Player Settings -> Publishing Settings enable Custom Base Gradle Template
- Open the new baseProjectTemplate.gradle file created in the Plugins/Android folder
- Replace both jcenter() with mavenCentral() like in the picture below
- Save and build again
Dependencies should be fetching from maven instead of jcenter which seems to be down.
This solution worked just fine for me, thanks. Using FB SDK 11
We tested the following and it seems to be working: We are using Facebook SDK 14.1 and Unity 2020.3.38f1
- In Android Player Settings -> Publishing Settings enable Custom Base Gradle Template
- Open the new baseProjectTemplate.gradle file created in the Plugins/Android folder
- Replace both jcenter() with mavenCentral() like in the picture below
- Save and build again
Dependencies should be fetching from maven instead of jcenter which seems to be down.
I can confirm. This works! Thanks!
Checklist
Environment
2020.3.15f2
9.2.0
&14.4.1
Android
Goals
Do a Unity Android build using gradle
Expected Results
Build our builds, as we did last week.
Actual Results
Also Happens with the latest version of the SDK
Steps to Reproduce
Just build with 'implementation com.facebook.android:facebook-applinks:[XX, YY)' on your mainTemplate.gradle
Code Samples & Details
Here is the repo part of our mainTemplate.gradle
It is suppose to download it from "https://dl.google.com/dl/android/maven2/" ?? I can find all the dependencies asked for there, but the build fails anyway.