android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.4k stars 8.29k forks source link

[WIP] Preparation for a JCenter sunset (and switch to a Maven Central); also: android gradle plugin is bumped #959

Closed dejan2609 closed 11 months ago

dejan2609 commented 3 years ago

Details / rationale:

At the moment Gradle's dependencies refresh failes: just open any module as a separate project in Android Studio and press Sync project with Gradle files OR use Gradle directly from a command line:

cd BasicRxJavaSample
./gradlew --refresh-dependencies

and you will receive error related to trove4j not being available to fetch (this specific trove4j version was published to a JCenter exclusively):

> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.jetbrains.trove4j:trove4j:20160824.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
       - https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
     Required by:
         project : > com.android.tools.build:gradle:4.1.2 > com.android.tools.build:builder:4.1.2 > com.android.tools:sdk-common:27.1.2

Related links:

dejan2609 commented 11 months ago

Update: not relevant anymore, hence closing 🧹