Can't Repro
Status Update
Comments
se...@google.com <se...@google.com>
an...@gmail.com <an...@gmail.com> #2
Known issue, we cannot do anything because AGP doesn't provide an API to fetch Kotlin sources (specifically here
Description
The crash seems to involve the detector androidx.lifecycle.lint.NonNullableMutableLiveDataDetector.
You can try disabling it with something like this:
android {
lintOptions {
disable "NullSafeMutableLiveData"
}
}
Stack: ArrayIndexOutOfBoundsException:NonNullableMutableLiveDataDetector$createUastHandler$1.getFieldTypeReference(NonNullableMutableLiveDataDetector.kt:101)←NonNullableMutableLiveDataDetector$createUastHandler$1.visitClass(NonNullableMutableLiveDataDetector.kt:88)←UElementVisitor$DispatchPsiVisitor.visitClass(UElementVisitor.kt:588)←UElementVisitor$DelegatingPsiVisitor.visitClass(UElementVisitor.kt:1139)←AbstractKotlinUClass.accept(KotlinUClass.kt:64)←ImplementationUtilsKt.acceptList(implementationUtils.kt:23)←AbstractKotlinUClass.accept(KotlinUClass.kt:67)←ImplementationUtilsKt.acceptList(implementationUtils.kt:23)
Repeats on lifecycle versions:
2.4.0-alpha01
2.3.1
2.3.0
2.2.0
This happened after the update fragment-ktx to 1.3.2 from 1.2.5. I didn't have the problem when I have 2.2.0 and lifecycle and fragment-ktx 1.2.5.
Maybe it is due to