Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuxinabc opened this issue Apr 3, 2024 · 1 comment
Open

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

yuxinabc opened this issue Apr 3, 2024 · 1 comment

Comments

@yuxinabc
Copy link

yuxinabc commented Apr 3, 2024

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

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'
}
@dellisd
Copy link
Collaborator

dellisd commented Apr 8, 2024

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() // <---
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants