Build Erro

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:mapReleaseSourceSetPaths’.

Could not resolve all files for configuration ‘:releaseRuntimeClasspath’.
Could not resolve androidx.activity:activity:1.7.0.
Required by:
project :
No cached version of androidx.activity:activity:1.7.0 available for offline mode.
No cached version of androidx.activity:activity:1.7.0 available for offline mode.
No cached version of androidx.activity:activity:1.7.0 available for offline mode.
Could not resolve androidx.appcompat:appcompat:1.6.1.
Required by:
project :
No cached version of androidx.appcompat:appcompat:1.6.1 available for offline mode.
No cached version of androidx.appcompat:appcompat:1.6.1 available for offline mode.
No cached version of androidx.appcompat:appcompat:1.6.1 available for offline mode.
Could not resolve androidx.legacy:legacy-support-v4:1.0.0.
Required by:
project :
No cached version of androidx.legacy:legacy-support-v4:1.0.0 available for offline mode.
No cached version of androidx.legacy:legacy-support-v4:1.0.0 available for offline mode.
No cached version of androidx.legacy:legacy-support-v4:1.0.0 available for offline mode.
Could not resolve com.google.android.material:material:1.9.0.
Required by:
project :
No cached version of com.google.android.material:material:1.9.0 available for offline mode.
No cached version of com.google.android.material:material:1.9.0 available for offline mode.
No cached version of com.google.android.material:material:1.9.0 available for offline mode.
Could not resolve androidx.work:work-runtime:2.7.1.
Required by:
project :
No cached version of androidx.work:work-runtime:2.7.1 available for offline mode.
No cached version of androidx.work:work-runtime:2.7.1 available for offline mode.
No cached version of androidx.work:work-runtime:2.7.1 available for offline mode.
Could not resolve androidx.media:media:1.6.0.
Required by:
project :
No cached version of androidx.media:media:1.6.0 available for offline mode.
No cached version of androidx.media:media:1.6.0 available for offline mode.
No cached version of androidx.media:media:1.6.0 available for offline mode.
Could not resolve androidx.multidex:multidex:2.0.1.
Required by:
project :
No cached version of androidx.multidex:multidex:2.0.1 available for offline mode.
No cached version of androidx.multidex:multidex:2.0.1 available for offline mode.
No cached version of androidx.multidex:multidex:2.0.1 available for offline mode.
Could not resolve androidx.preference:preference:1.2.1.
Required by:
project :
No cached version of androidx.preference:preference:1.2.1 available for offline mode.
No cached version of androidx.preference:preference:1.2.1 available for offline mode.
No cached version of androidx.preference:preference:1.2.1 available for offline mode.
Could not resolve com.squareup.okhttp:okhttp:2.7.5.
Required by:
project :
No cached version of com.squareup.okhttp:okhttp:2.7.5 available for offline mode.
No cached version of com.squareup.okhttp:okhttp:2.7.5 available for offline mode.
No cached version of com.squareup.okhttp:okhttp:2.7.5 available for offline mode.
Could not resolve com.squareup.okhttp:okhttp-urlconnection:2.7.5.
Required by:
project :
No cached version of com.squareup.okhttp:okhttp-urlconnection:2.7.5 available for offline mode.
No cached version of com.squareup.okhttp:okhttp-urlconnection:2.7.5 available for offline mode.
No cached version of com.squareup.okhttp:okhttp-urlconnection:2.7.5 available for offline mode.
Could not resolve com.google.android.exoplayer:exoplayer:2.18.1.
Required by:
project :
No cached version of com.google.android.exoplayer:exoplayer:2.18.1 available for offline mode.
No cached version of com.google.android.exoplayer:exoplayer:2.18.1 available for offline mode.
No cached version of com.google.android.exoplayer:exoplayer:2.18.1 available for offline mode.
Could not resolve com.google.android.exoplayer:extension-mediasession:2.18.1.
Required by:
project :
No cached version of com.google.android.exoplayer:extension-mediasession:2.18.1 available for offline mode.
No cached version of com.google.android.exoplayer:extension-mediasession:2.18.1 available for offline mode.
No cached version of com.google.android.exoplayer:extension-mediasession:2.18.1 available for offline mode.
Could not resolve com.google.code.gson:gson:2.8.5.
Required by:
project :
No cached version of com.google.code.gson:gson:2.8.5 available for offline mode.
No cached version of com.google.code.gson:gson:2.8.5 available for offline mode.
No cached version of com.google.code.gson:gson:2.8.5 available for offline mode.
Could not resolve com.github.bumptech.glide:glide:4.11.0.
Required by:
project :
No cached version of com.github.bumptech.glide:glide:4.11.0 available for offline mode.
No cached version of com.github.bumptech.glide:glide:4.11.0 available for offline mode.
No cached version of com.github.bumptech.glide:glide:4.11.0 available for offline mode.
Could not resolve com.squareup.retrofit2:retrofit:2.6.4.
Required by:
project :
No cached version of com.squareup.retrofit2:retrofit:2.6.4 available for offline mode.
No cached version of com.squareup.retrofit2:retrofit:2.6.4 available for offline mode.
No cached version of com.squareup.retrofit2:retrofit:2.6.4 available for offline mode.
Could not resolve com.squareup.retrofit2:converter-gson:2.6.4.
Required by:
project :
No cached version of com.squareup.retrofit2:converter-gson:2.6.4 available for offline mode.
No cached version of com.squareup.retrofit2:converter-gson:2.6.4 available for offline mode.
No cached version of com.squareup.retrofit2:converter-gson:2.6.4 available for offline mode.
Could not resolve com.squareup.okhttp3:okhttp:3.12.13.
Required by:
project :
No cached version of com.squareup.okhttp3:okhttp:3.12.13 available for offline mode.
No cached version of com.squareup.okhttp3:okhttp:3.12.13 available for offline mode.
No cached version of com.squareup.okhttp3:okhttp:3.12.13 available for offline mode.
Could not resolve com.squareup.okhttp3:logging-interceptor:3.12.13.
Required by:
project :
No cached version of com.squareup.okhttp3:logging-interceptor:3.12.13 available for offline mode.
No cached version of com.squareup.okhttp3:logging-interceptor:3.12.13 available for offline mode.
No cached version of com.squareup.okhttp3:logging-interceptor:3.12.13 available for offline mode.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.10.
Required by:
project :
No cached version of org.jetbrains.kotlin:kotlin-stdlib:1.3.10 available for offline mode.
No cached version of org.jetbrains.kotlin:kotlin-stdlib:1.3.10 available for offline mode.
No cached version of org.jetbrains.kotlin:kotlin-stdlib:1.3.10 available for offline mode.
Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0.
Required by:
project :
No cached version of org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0 available for offline mode.
No cached version of org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0 available for offline mode.
No cached version of org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0 available for offline mode.
Could not resolve com.github.wasabeef:glide-transformations:4.2.0.
Required by:
project :
No cached version of com.github.wasabeef:glide-transformations:4.2.0 available for offline mode.
No cached version of com.github.wasabeef:glide-transformations:4.2.0 available for offline mode.
No cached version of com.github.wasabeef:glide-transformations:4.2.0 available for offline mode.
Could not resolve androidx.multidex:multidex:2.0.1.
Required by:
project :
No cached version of androidx.multidex:multidex:2.0.1 available for offline mode.
No cached version of androidx.multidex:multidex:2.0.1 available for offline mode.
No cached version of androidx.multidex:multidex:2.0.1 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.

BUILD FAILED in 4s
3 actionable tasks: 2 executed, 1 up-to-date
The system cannot find the path specified.

BUILD FAILED:
Message_Build_App_Bundle_Build_Failed_Info

It looks like either:

  1. your internet connection is not working
  2. you have offline mode on (see Settings > Build Settings > Offline Mode)

Chris