Status Update
Comments
jb...@google.com <jb...@google.com>
je...@google.com <je...@google.com>
sp...@google.com <sp...@google.com> #2
Task with name 'lintDebug' not found in project
What kind of project is this? (e.g., an app, library, dynamic-feature, or something else?)
mu...@gmail.com <mu...@gmail.com> #3
I see the same issue. It happens on a "com.android.application" (which would make the most sense since the OP reported using the property applicationVariants
)
my exact code is
android {
afterEvaluate {
// Run lint checks on every build
applicationVariants.configureEach {
val lintTask = tasks.named("lint${name.replaceFirstChar(Char::titlecase)}")
assembleProvider.dependsOn(lintTask)
}
}
}
mu...@gmail.com <mu...@gmail.com> #4
sp...@google.com <sp...@google.com> #5
Re #3 and #1, what command results in the error? I don't think it should matter much, because I assume this error occurs during configuration time, but I wasn't able to repro with ./gradlew assembeDebug
or ./gradlew assembleRelease
.
I tried to reproduce the bug with several different versions of AGP and Gradle (using code from #1 and #3), but I wasn't able to reproduce it.
Can you give repro steps or upload a repro project?
mu...@gmail.com <mu...@gmail.com> #6
The project fails to sync. Maybe not ideal but the issue for me was when trying to build this (somewhat complicated) app:
sp...@google.com <sp...@google.com> #7
Thanks. I see the problem. Caused by
mu...@gmail.com <mu...@gmail.com> #9
Great thank you!
an...@google.com <an...@google.com> #10
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 1
- Android Gradle Plugin 8.8.0-alpha01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
The example below worked fine until gradle plugin version
8.3.x
and now it fails with the message:> Task with name 'lintDebug' not found in project
.Going back to
8.2.x
fixes the problem.Studio Build: 2023.2.1 Patch 1
Version of Gradle Plugin: 8.3.1
Version of Gradle: 8.6
Version of Java: 17.0.9
OS: MacOS Sonoma 14.4