architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

[todo-mvp] A problem occurred configuring root project 'todoapp'

Open Croie opened this issue 6 years ago • 1 comments

/* Remove this comment Please add the branch/sample ("all", "todo-mvp", "todo-mvp-dagger", etc.) in the title if it applies. */

  • What went wrong: A problem occurred configuring root project 'todoapp'.

Could not resolve all artifacts for configuration ':classpath'. Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0): No cached version available for offline mode Could not download commons-compress.jar (org.apache.commons:commons-compress:1.12): No cached version available for offline mode

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Croie avatar Mar 25 '19 06:03 Croie

This error occurs because Gradle is in Offline Mode and cannot find required dependencies (fastutil.jar, commons-compress.jar) in the local cache.

Problem:

Could not download fastutil.jar ... No cached version available for offline mode Gradle is trying to download dependencies, but it's offline and those dependencies are not yet cached locally.

Solution: Disable Offline Mode In Android Studio: Go to File > Settings (or Preferences on macOS).

Navigate to Build, Execution, Deployment > Build Tools > Gradle.

Uncheck the box: Offline work.

Alternatively: from Terminal/Command line Use this command to build:

./gradlew build --refresh-dependencies This forces Gradle to download missing files online.

Once done: Gradle will download all needed artifacts (like fastutil and commons-compress), and the build will proceed normally.

VaradGupta23 avatar Jul 21 '25 09:07 VaradGupta23