安卓资源链接聊天失败21.



我正在尝试将chat21 API添加到我的项目中,但遇到错误"Android资源链接失败">

我尝试查看资源文件以查找任何错误以及查找类似的帖子,但在这种情况下它们都没有帮助我

Android 资源链接失败警告:删除资源 com.example.bartertrade:string/activity_public_profile_presence_not_available 没有必需的默认值。/Users/neha/.gradle/caches/transforms-2/files-2.1/bc7291a5f042de9d7c80c9df50272833/res/layout/layout_custom_notification.xml:29: 错误:资源样式/文本外观.AppCompat.通知.标题(又名 com.example.bartertrade:style/TextAppearance.AppCompat.Notification.Title) 未找到。

错误:链接文件资源失败。

<RelativeLayout
android:id="@+id/box_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/image">
<TextView
android:id="@+id/title"
style="@style/TextAppearance.AppCompat.Notification.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/time"
android:maxLength="20"
android:maxLines="1" />
<TextView
android:id="@+id/time"
style="@style/TextAppearance.AppCompat.Notification.Time"
android:layout_width="100dp"
android:layout_marginTop="2dp"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:gravity="end" />
</RelativeLayout>

">

Android资源链接失败"此错误将删除包含链接数据的R.Java,当XML文件中出现某些错误时会发生此错误。

尝试在 XML 文件上查找错误。

我猜你style="@style/TextAppearance.AppCompat.Notification.Title"添加了这个,这是不支持的。

我正在尝试将chat21 API添加到我的项目中,但遇到错误"Android资源链接失败">

我尝试查看资源文件以查找任何错误以及查找类似的帖子,但在这种情况下它们都没有帮助我

Android 资源链接失败警告:删除资源 com.example.bartertrade:string/activity_public_profile_presence_not_available,没有必需的默认值。/Users/neha/.gradle/caches/transforms-2/files-2.1/bc7291a5f042de9d7c80c9df50272833/res/layout/layout_custom_notification.xml:29:错误:找不到资源样式/TextAppearance.AppCompat.Notification.Title(akacom.example.bartertrade:style/TextAppearance.AppCompat.Notification.Title)。

你可以看到程序找不到那个特定的东西 .从 XML 文件中删除这些行时。那么你的问题 将修复。

最新更新