Status Update
Comments
am...@google.com <am...@google.com>
fr...@gmail.com <fr...@gmail.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?)
je...@google.com <je...@google.com>
xo...@google.com <xo...@google.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)
}
}
}
fr...@gmail.com <fr...@gmail.com> #4
xo...@google.com <xo...@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?
an...@google.com <an...@google.com> #6
The project fails to sync. Maybe not ideal but the issue for me was when trying to build this (somewhat complicated) app:
Description
Android studio started freezing when indexing recently. Usually after updating project from got via CMD+T. The indexing progress bar appears, but freezes about halfway and whole studio is unresponsive and needs to be force killed. After starting again, it usually works for some time.
------------------
Android Studio Ladybug Feature Drop | 2024.2.2 Canary 9
Build #AI-242.23339.11.2422.12584204, built on October 31, 2024
Runtime version: 21.0.4+-12422083-b607.1 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 14
Metal Rendering is ON
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.jetbrains.kmm (0.8.3(242)-5)