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

How to add agp 7.x as dependency? #650

Closed
Piasy opened this issue Dec 15, 2022 · 3 comments
Closed

How to add agp 7.x as dependency? #650

Piasy opened this issue Dec 15, 2022 · 3 comments

Comments

@Piasy
Copy link

Piasy commented Dec 15, 2022

When creating Android project with latest Android Studio 2021/2022, the root project build.gradle.kts file has plugins block like:

plugins {
    //trick: for the same plugin versions in all sub-modules
    id("com.android.library").version("7.3.0").apply(false)
    id("com.android.application").version("7.3.0").apply(false)
}

How could I declare it with refreshVersions?

@OKatrych
Copy link

OKatrych commented Jan 16, 2023

EDITED by @LouisCAD:

Here's how:

Inside versions.properties:

plugin.android=7.3.0

Inside app level build.gradle.kts:

plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
}

@Piasy
Copy link
Author

Piasy commented Jan 29, 2023

Thanks!

@Piasy Piasy closed this as completed Jan 29, 2023
@LouisCAD
Copy link
Member

LouisCAD commented Jan 29, 2023

@OKatrych version placeholders (underscores) are not supported in the plugin DSL FYI.
I edited your message to show only the correct solution.

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

3 participants