Attempt to invoke virtual method 
'boolean androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer.isRtl()' 
on a null object reference.

enter image description here

Who faced with simmilar problem? Before update everything worked well.

推荐答案

更新

Google has released a fix in version 2.0.3.


Outdated: Google is aware of the issue. Feel free to star it, as more stars on the issue might help them prioritize it higher. Feel free to also add sample code that is causing the crash to help them reproduce the issue and fix it.

https://issuetracker.google.com/issues/170316875

As a temporary workaround, you might be able to add:

app:layout_optimizationLevel="none"

更好的解决方案可能是将评级降至2.0.1,直到此问题得到解决.

Kotlin相关问答推荐

为什么onEach不是挂起函数,而Collect是?

"Kotlin中的表达式

用vararg替换列表的设计弃用警告

扩展属性委托给实例属性

Java/Kotlin中类似Rust般的注释编译?

Kotlin Path.useLines { } - 如何不获取 IOException("Stream closed")?

Kotlin 条件格式字符串

在 Kotlin 中通过反射获取 Enum 值

Kotlin 解构超过五个组件

Kotlin 创建snackbar

将 @Component.Builder 与构造函数参数一起使用

Tornadofx - 如何在每个实例上将参数传递给 Fragment

如何为kotlin异常生成SerialVersionId?

编译错误:-Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond

类型不匹配:推断类型为 LoginActivity 但应为 LifecycleOwner

任何处理器都无法识别以下选项:'[kapt.kotlin.generated, room.incremental]'

指定为非null的参数在ArrayAdaper中为null

Kotlin out-projected 类型禁止使用

WebFlux 功能:如何检测空 Flux 并返回 404?

Android Jetpack Compose - 图像无法zoom 到框的宽度和高度