【问题标题】:android.view.InflateException: Error inflating class <unknown>android.view.InflateException:错误膨胀类<未知>
【发布时间】:2020-08-22 11:30:46
【问题描述】:

我是 android 的初学者,我想编写一个计算器(按 here 查看项目),但我收到 this 错误。

有人可以帮我吗?

【问题讨论】:

    标签: java android android-studio inflate-exception


    【解决方案1】:

    你好,凯文,你使用了错误的约束,即小部件错误告诉你它发生在一行中以更改你的约束布局

    <androidx.constraintlayout.widget.ConstraintLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
    

    <androidx.constraintlayout.ConstraintLayout>
    </androidx.constraintlayout.ConstraintLayout>
    

    【讨论】:

    • 我改变了它,它说this,但我添加了依赖项,当我运行应用程序时,我仍然得到相同的error。 “MissingClass”是什么意思?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多