better-dynamic-features
better-dynamic-features copied to clipboard
Could not find com.android.tools.build:gradle:8.2.0
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'
}
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() // <---
}
}