compileSdk - 34 | agp 8.4.1(8.6-all) - #12
Open
OneXeor wants to merge 8 commits into
Open
Conversation
|
Can we get this merged please as we cannot create android builds with this plugin with newest flutter stable update? |
Gradle 9 removed the jcenter() method outright, so any consumer on Gradle 9
fails while *evaluating* this project, before dependency resolution is even
attempted:
A problem occurred evaluating project ':fk_user_agent'.
> Could not find method jcenter() for arguments [] on repository container
of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
mavenCentral() is the documented successor: jcenter proxied Maven Central, and
mavenCentral() is what Gradle and Google recommended when jcenter was sunset.
jcenter has been read-only since February 2021 and unreachable since, so nothing
was actually resolving from it - no artifact changes version as a result.
Replacing rather than simply dropping the repository keeps the plugin
self-contained: the buildscript block needs Maven Central for the AGP
transitive graph, and the example app needs it for junit/espresso.
Applied in both android/build.gradle and example/android/build.gradle.
The rationale belongs in the PR description, not in a build script.
Patch level: the change is confined to the two android/build.gradle files, no Dart or Kotlin source is touched and no public API moves. CHANGELOG.md is updated here because this repo actually keeps one, unlike the version field in android/build.gradle, which has been stale at 2.0.0 since before this branch and is left alone rather than fixed in passing.
…enter-with-mavencentral tech: [CRDES-46149] replace jcenter() with mavenCentral()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.