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

"Could not find matching constructor for DefaultAndroidSourceDirectorySet" with Android Gradle plugin 7.2.0-rc01 #613

Closed
mhsmith opened this issue Apr 30, 2022 · 3 comments
Labels

Comments

@mhsmith
Copy link
Member

mhsmith commented Apr 30, 2022

Chaquopy version

11.0.0

Relevant parts of your build.gradle file

    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.0-rc01'
        classpath "com.chaquo.python:gradle:11.0.0"
    }

Describe your issue

An exception occurred applying plugin request [id: 'com.chaquo.python']
> Failed to apply plugin 'com.chaquo.python'.
> Could not find matching constructor for: com.android.build.gradle.internal.api.DefaultAndroidSourceDirectorySet(String, org.gradle.api.internal.project.DefaultProject_Decorated, com.android.build.gradle.internal.api.artifact.SourceArtifactType$JAVA_SOURCES)

@mhsmith mhsmith added the bug label Apr 30, 2022
@mhsmith
Copy link
Member Author

mhsmith commented Apr 30, 2022

Chaquopy doesn't support pre-release versions of the Android Gradle plugin, so if you get this error, please go back to the current stable version, 7.1.3.

If this is still an issue when version 7.2.0 becomes stable, we'll fix it in a new Chaquopy release shortly afterwards.

@mhsmith
Copy link
Member Author

mhsmith commented May 10, 2022

We'll fix this in a new Chaquopy release within the next few days. Meanwhile, please continue to use Android Gradle plugin version 7.1.3 or earlier.

@mhsmith mhsmith pinned this issue May 11, 2022
@mhsmith mhsmith unpinned this issue May 12, 2022
@mhsmith
Copy link
Member Author

mhsmith commented May 12, 2022

This issue is fixed in Chaquopy 12.0.0. To upgrade, change the Chaquopy version number in your app's top-level build.gradle file.

@mhsmith mhsmith closed this as completed May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant