Status Update
Comments
hu...@google.com <hu...@google.com>
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@google.com> #2
Lint options:
lintOptions {
lintConfig = file('lint.xml')
abortOnError true
xmlReport true
htmlReport true
checkDependencies true
}
Also, our project has custom lint rules. Failure happens with a dependency of 26.6.3 and 27.0.0.
Is any way to downgrade lint runner? This problem is keeping us from using AGP 4.0
de...@squareup.com <de...@squareup.com> #3
Attached slightly different stacktrace for the same problem.
Wonder if disabling some lint rules could help to "fix" this problem, as it is also blocking for us 4.0 AGP upgrade.
bi...@google.com <bi...@google.com> #4
Notes:
I suspect the exceptions are happening now because JetBrains recently changed an assert
statement into a hard failure (see
I.e., it's possible that Lint has been hitting this code path all along, and only now it is causing a problem.
This has been difficult to investigate so far because the failure is nondeterministic and also deep inside the Kotlin compiler. Plus, JetBrains seems to be hitting this code path occasionally too (hence why they changed the assert into a hard failure), so I'm not even sure whether Lint is implicated or not.
bi...@google.com <bi...@google.com> #5
It could also explain why not all lint rules were working from time to time (
Is any public issue created I could follow?
eb...@netflix.com <eb...@netflix.com> #6
Has anyone tried this with 4.1.0-beta2? We're using a more recent version of UAST and the Kotlin compiler there. It's not clear that it's fixed but -- there's a chance :-)
Description
DESCRIBE THE ISSUE IN DETAIL:
In AGP 7.4+, the this commit ), however it is still marked as an
outputKeepRules
property inDexingFileDependenciesTask
was changed from aRegularFileProperty
to aDirectoryProperty
(inOutputFile
.This causes a configuration error as gradle expects this property to be a file, but finds a directory instead. It should be marked with `OutputDirectory.
Configuration error:
This property appears to have been removed in AGP 8.1, but this issue still affects both AGP 7.4 and 8.0.
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: --
Version of Gradle Plugin: 7.4, 8.0-beta02
Version of Gradle: 7.6
Version of Java: --
OS: --