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: