无法解析资源@绘制/ backround.png [英] Couldn't resolve resource @drawable/backround.png

查看:242
本文介绍了无法解析资源@绘制/ backround.png的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近想学习Android开发,我进入了2个问题。他们是

 未能转换@绘制/ backround.png成绘
无法解析资源@绘制/ backround.png

我的继承人XML文件

 < LinearLayout中的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    机器人:layout_width =FILL_PARENT
    机器人:背景=@绘制/ backround.png
    机器人:layout_height =FILL_PARENT
    机器人:方向=垂直>
< / LinearLayout中>


解决方案

 < LinearLayout中的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
 机器人:layout_width =FILL_PARENT
 机器人:背景=@绘制/底色
 机器人:layout_height =FILL_PARENT
 机器人:方向=垂直> < / LinearLayout中>

有没有必要在这里扩展。刚刚提到的名称,而不扩展

I was recently trying to learn Android development and I came into 2 problems. They are

Failed to convert @drawable/backround.png into a drawable
Couldn't resolve resource @drawable/backround.png

Heres My XML File

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:background="@drawable/backround.png"
    android:layout_height="fill_parent"
    android:orientation="vertical" >  
</LinearLayout>

解决方案

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="fill_parent"
 android:background="@drawable/backround"
 android:layout_height="fill_parent"
 android:orientation="vertical" >  </LinearLayout>

There is no need of extensions here. just mention the name without extension

这篇关于无法解析资源@绘制/ backround.png的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆