which com.android.library version in flutter is ok with gradle-wrapper.properties:…
- User
which com.android.library version in flutter is ok with gradle-wrapper.properties: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https://services.gradle.org/distributions/gradle-8.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
here is build.gradle.kts: plugins {
/** * Use `apply false` in the top-level build.gradle file to add a Gradle * plugin as a build dependency but not apply it to the current (root) * project. Don't use `apply false` in sub-projects. For more information, * see Applying external plugins with same version to subprojects. */ // id("com.android.application") version "8.10.0" apply false // id("com.android.library") version "8.10.0" apply false // id("org.jetbrains.kotlin.android") version "2.1.20" apply false id("com.android.application") version "8.2.1" apply false id("com.android.library") version "8.2.1" apply false id("org.jetbrains.kotlin.android") version "1.8.22" apply false}
settings.gradle.kts: pluginManagement {
/** * The pluginManagement.repositories block configures the * repositories Gradle uses to search or download the Gradle plugins and * their transitive dependencies. Gradle pre-configures support for remote * repositories such as JCenter, Maven Central, and Ivy. You can also use * local repositories or define your own remote repositories. Here we * define the Gradle Plugin Portal, Google's Maven repository, * and the Maven Central Repository as the repositories Gradle should use to look for its * dependencies. */ repositories { google() gradlePluginPortal() mavenCentral() }} dependencyResolutionManagement {
/** * The dependencyResolutionManagement.repositories * block is where you configure the repositories and dependencies used by * all modules in your project, such as libraries that you are using to * create your application. However, you should configure module-specific * dependencies in each module-level build.gradle file. For new projects, * Android Studio includes Google's Maven repository and the Maven Central * Repository by default, but it does not configure any dependencies (unless * you select a template that requires some). */repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } } rootProject.name = "My Application" include(":app")
- Assistant
For your Gradle 8.5 setup, the com.android.library version 8.2.1 that you're currently using in your build.gradle.kts file is compatible. This version works well with Gradle 8.5.
If you want to ensure optimal compatibility, you could also use:
- com.android.library version 8.0.0 through 8.2.2
The version you're currently using (8.2.1) is a good choice for Gradle 8.5, so you don't need to change it. Your current configuration looks appropriate.
Would you like me to explain more about version compatibility between Gradle and the Android Gradle Plugin?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.