gpt4 book ai didi

android - 类未找到异常 : Didn't find class "android.view.data"

转载 作者:行者123 更新时间:2023-11-29 14:59:02 24 4
gpt4 key购买 nike

<分区>

这是我的 xml:

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/a"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.a.AFragment">
<data>
<import type="android.databinding.ObservableArrayMap"/>
<variable name="user" type="ObservableArrayMap"/>
</data>
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{user.name}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>

运行时出现以下错误:

Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class data Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class data Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.data" on path: DexPathList[[zip file "/data/app/x.x.x-2/base.apk", zip file "/data/app/x.x.x-2/split_lib_dependencies_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_0_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_1_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_2_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_3_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_4_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_5_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_6_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_7_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_8_apk.apk", zip file "/data/app/x.x.x-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/x.x.x-2/lib/arm, /system/lib, /vendor/lib]]

错误在 <data> 上行(开始标记)。

是什么导致了这个错误,我该如何解决?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com