Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Android报错:Error: Can't determine type for tag 错误:无法确定标记的类型大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

报错信息:

D:\Exercise\Android_text\Andriod_Practice\app\src\main\res\layout_find\find_dialect.xml: Error: Can‘t determine type for tag ‘<LinearLayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical">

<RelativeLayout android:BACkground="@drawable/find_game" android:id="@+id/find_game" style="@style/find_main_style">

<TextView android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="游戏" android:textColor="@color/white" android:textSize="30sp"/>
</RelativeLayout>

<RelativeLayout android:BACkground="@drawable/find_study" android:id="@+id/find_study" style="@style/find_main_style">

<TextView android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="学习" android:textColor="@color/white" android:textSize="30sp"/>
</RelativeLayout>

<RelativeLayout android:BACkground="@drawable/find_moive" android:id="@+id/find_moive" style="@style/find_main_style">

<TextView android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="电影、视频" android:textColor="@color/white" android:textSize="30sp"/>
</RelativeLayout>

<RelativeLayout android:BACkground="@drawable/find_class" android:id="@+id/find_class" style="@style/find_main_style">

<TextView android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="课程" android:textColor="@color/white" android:textSize="30sp"/>
</RelativeLayout>
</LinearLayout>‘

 

产生原因:合并代码时,莫名奇妙的出现了一个文件layout_find,导致布局加载错误

解决方法删除文件夹【删除前检查一下里面的文件有没有用,如果有用,则把文件放到layout文件夹下】

大佬总结

以上是大佬教程为你收集整理的Android报错:Error: Can't determine type for tag 错误:无法确定标记的类型全部内容,希望文章能够帮你解决Android报错:Error: Can't determine type for tag 错误:无法确定标记的类型所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。