can anyone help me out with fixing these error FAI...
# community-support
b
can anyone help me out with fixing these error FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task 'applintVitalRelease'.
Could not resolve all artifacts for configuration 'appdebugRuntimeClasspath'.
> Could not find coreprogress-1.0.2.aar (io.github.lizhangqucoreprogress1.0.2). Searched in the following locations: https://jcenter.bintray.com/io/github/lizhangqu/coreprogress/1.0.2/coreprogress-1.0.2.aar * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. perations.DefaultBuildOperationQueue$WorkerRunnable.run(DefaultBuildOperationQueue.java:178) ... 3 more * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. * Get more help at https://help.gradle.org
e
jcenter does not exist anymore, https://jfrog.com/blog/jcenter-sunset/
🤣 1
if the library you are trying to use does not exist in another repo, you cannot use it. https://github.com/lizhangqu/CoreProgress/issues/21
c
now I have many questions, is gradle going to remove
jcenter()
in the next release? is there something new beyond maven central? wasn't gradle plugins on
jcenter()
?
e
jcenter now redirects to maven central, so does gradle plugin portal (for artifacts it doesn't directly host). https://blog.gradle.org/portal-jcenter-impact
👍 1
yes this does result in some broken plugins. most are fine, and there's nothing we can do about the rest without the author or somebody republishing them elsewhere
b
can you guys please let me know how to resolve this?
this is the build.gradle file // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 24 compileSdkVersion = 29 targetSdkVersion = 29 kotlinVersion = '1.5.0' androidXBrowser = "1.4.0" } repositories { google() mavenCentral() maven { url 'https://jitpack.io' } } dependencies { classpath("com.android.tools.buildG3.5.4") classpath "org.jetbrains.kotlinkotlin gradle plugin$kotlinVersion" classpath 'com.google.gmsgoogle services4.3.13' classpath 'com.google.firebasefirebase crashlytics gradle2.9.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim()) allprojects { configurations.all { resolutionStrategy { // Remove this override in 0.65+, as a proper fix is included in react-native itself. force "com.facebook.reactreact native" + REACT_NATIVE_VERSION } } repositories { mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } google() jcenter() maven { url 'https://www.jitpack.io' } } configurations.all { resolutionStrategy { // Remove this override in 0.65+, as a proper fix is included in react-native itself. force "com.facebook.reactreact native" + REACT_NATIVE_VERSION } } }
v
As @ephemient said, you use
jcenter()
which now is only a redirect to
mavenCentral()
and thus totally useless, together with requiring a library that was only available on JCenter and thus is not available anymore. You can read on the provided links more information about it. To resolve it, don't use that library, or check whether an updated version exists somewhere, or whether it is available somewhere else.
b
Thanks For this guidance it's working properly 🙂
👌 1