Skip to content

Problems using Gradle plugin 9+ #2071

Description

@pozirk

Hey there,

I moved to Android SDK 37, Gradle 9.4.1 and Gradle plugin 9.2.1.
This resulted in 2 error messages:

unable to resolve class groovy.swing.SwingBuilder

This one I fixed by commenting out everything with SwingBuilder at "\templates\android\template\app\build.gradle".
Line 1 and line 97-143.

Another problem:

Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated

Again, fixed by commenting out lines 79-85

After that I could build and run my app with no ptoblems.
I'm not sure if these are good long term solutions, would be nice to have it fixed properly.
Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions