Added lint to a new project. It compiles, but I get red lines in my rule.

775 views
Skip to first unread message

colto...@protonmail.com

unread,
Jul 11, 2022, 6:14:20 PM7/11/22
to lint-dev
Here is my lint module build.gradle.kts

I use this in 2 projects already. No issues.

I added it to a third project today and I get red lines in my lint rule files. Any Ideas?

plugins {
id("kotlin")
id("com.android.lint")
}

val lintVersion = "30.4.0-alpha07"

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

api("com.android.tools.external.com-intellij:intellij-core:$lintVersion")
api("com.android.tools.external.org-jetbrains:uast:$lintVersion")

compileOnly("com.android.tools.lint:lint-api:$lintVersion")
compileOnly("com.android.tools.lint:lint-checks:$lintVersion")
}

java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

Example error:
 2022-07-11 at 18.13.11.png
Reply all
Reply to author
Forward
0 new messages