android – 错误:文件名必须以.xml或.png结尾

android – 错误:文件名必须以.xml或.png结尾,第1张

概述虽然我没有选择photothumb.db作为drawable,但我得到一个错误,说photothumb.db应该以.xml或.png结尾 我的profilemaller图像是png类型 以下是我的代码 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sch 虽然我没有选择photothumb.db作为drawable,但我得到一个错误,说photothumb.db应该以.xml或.png结尾

我的profilemaller图像是png类型

以下是我的代码

<FrameLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"    xmlns:tools="http://schemas.androID.com/tools"    androID:layout_wIDth="match_parent"    androID:layout_height="match_parent"    androID:background="@drawable/profilesmaller"    tools:context="charlenebuena.guest.HomeFragment"></FrameLayout>

以下是我的Gradle控制台消息

FAILURE: Build Failed with an exception.* What went wrong:Execution Failed for task ':app:mergeDeBUGResources'.> C:\Users\Charlene MarIE\AndroIDStudioProjects\Guest\app\src\main\res\drawable\photothumb.db: Error: The file name must end with .xml or .png* Try:Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output.BUILD FailedTotal time: 2.72 secs
解决方法 AndroID仅接受.png,.jpg,.gif和.xml文件作为可绘制资源.如果您有.db文件,则将该文件放在assets文件夹中. 总结

以上是内存溢出为你收集整理的android – 错误:文件名必须以.xml或.png结尾全部内容,希望文章能够帮你解决android – 错误:文件名必须以.xml或.png结尾所遇到的程序开发问题。

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

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1125937.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存