-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Failed to apply detekt(v1.16.0-RC1) plugin in subproject #3476
Comments
Thank you for reporting this issue. Which AGP version is applied to your project? |
I apply 4.0.1 AGP in my project |
Have you tried to update to AGP 4.1.x to see if this is still happening? |
If that's the problem we should think about our retro compatibility with agp. |
I have updated AGP version to 4.1.2, which need gradle version higher than 6.5+, so i also update my AS version from 4.0 to 4.1.2 and gradle version from 6.1.1 to 6.5.1, then the problem is solved. |
Unfortunately AGP minor version does not guarantee plugin compatibility. As drafted in #3334 we are planning to move towards using For this issue though I think it would be beneficial to add a version check for the AGP version and alert users if there is a mismatch between AGP versions. @niqiu1683 I would recommend upgrading to AGP 4.1 for your project though. There is a major benefit for my app that AGP 4.1 reduces the app size significantly (See doc). |
👍
Agree, and we should add it in the documentation too. |
Do we want to do something here or just wait for 7.0 that will fix this problem for us? |
As far as I can tell, 1.17.0 has not fixed this problem. |
Related to #3327
@cahaverl Have you updated AGP version? Also we should probably add a compatibility table with Gradle/AGP/Kotlin version tuple for every Detekt version. That will clarify which version of which tool to use together with Detekt |
Closing this in favor of #3327. Right now we can not fix it. As soon as we can move to 7.0 we could provide a better compatibility. The compatibility table is in the oven so new users should find the problem easier to fix #3803. If there is something else that we can do in terms of documentation, please let us know. |
Upgrading to AGP 4.1.3 fixed it for me. Thanks. |
Expected Behavior
Everything performs well under older detekt version, such as 1.15.0, however I can't apply detekt plugin in subproject under version 1.16.0-RC1.
root build.gradle file:.
Observed Behavior
There is a problem occurred when I sync gradle, show as below:
Steps to Reproduce
under deteke version 1.16.0-rc1, just add
in subprojects closure
Context
Maybe a bug in new version?
Your Environment
The text was updated successfully, but these errors were encountered: