better-dynamic-features icon indicating copy to clipboard operation
better-dynamic-features copied to clipboard

Could not find com.android.tools.build:gradle:8.2.0

Open yuxinabc opened this issue 1 year ago • 1 comments

Could not find com.android.tools.build:gradle:8.2.0. Searched in the following locations:

  • https://plugins.gradle.org/m2/com/android/tools/build/gradle/8.2.0/gradle-8.2.0.pom Required by: project :featrue:audio > app.cash.better.dynamic.features:app.cash.better.dynamic.features.gradle.plugin:0.2.0 > app.cash.better.dynamic.features:gradle-plugin:0.2.0 Add google Maven repository and sync project Open File

project gradle

dependencies {
       classpath 'app.cash.better.dynamic.features:agp-patch:0.2.0'
       classpath 'com.android.tools.build:gradle:8.2.0'
}
repositories {
       mavenCentral()
       google()
}

app gradle

apply plugin: 'com.android.application'
apply plugin: 'app.cash.better.dynamic.features.agp-patch'

dynamic features gradle

plugins {
    id 'com.android.dynamic-feature'
    id 'app.cash.better.dynamic.features' version '0.2.0'
    id 'org.jetbrains.kotlin.android'
}

yuxinabc avatar Apr 03 '24 03:04 yuxinabc

If you're applying the main better-dynamic-features plugin using the plugins DSL, you might need to add the google() repository to the plugin repositories:

// settings.gradle
pluginManagement {
  repositories {
    gradlePluginPortal()
    google() // <---
  }
}

dellisd avatar Apr 08 '24 13:04 dellisd