我的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结尾所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)