Status Update
Comments
ga...@google.com <ga...@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
ga...@google.com <ga...@google.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.
ga...@google.com <ga...@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.
wa...@gmail.com <wa...@gmail.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?
ga...@google.com <ga...@google.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
Affected library:'com.android.tools.build', name: 'apksig', version: '4.1.1'
In class
com.android.apksig.ApkVerifier$Result
is the methodgetV4SchemeSigners()
marked private which makes it impossible to use it.The other methods
getV1SchemeSigners()
,getV2SchemeSigners()
,getV3SchemeSigners()
are all public. Please apply this also forgetV4SchemeSigners()
so that it is possible to retrieve the details of the v4 signature when using apksig library.Source code reference:https://android.googlesource.com/platform/tools/apksig/+/refs/heads/master/src/main/java/com/android/apksig/ApkVerifier.java