Skip to content

compileSdk - 34 | agp 8.4.1(8.6-all) - #12

Open
OneXeor wants to merge 8 commits into
flutter-fast-kit:masterfrom
OneXeor:versions-update
Open

compileSdk - 34 | agp 8.4.1(8.6-all)#12
OneXeor wants to merge 8 commits into
flutter-fast-kit:masterfrom
OneXeor:versions-update

Conversation

@OneXeor

@OneXeor OneXeor commented Jun 10, 2024

Copy link
Copy Markdown

No description provided.

@ashiots2

Copy link
Copy Markdown

Can we get this merged please as we cannot create android builds with this plugin with newest flutter stable update?

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':fk_user_agent'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

OneXeor and others added 7 commits December 19, 2024 20:47
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()
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

Successfully merging this pull request may close these issues.

3 participants