Android 报“Change to android.widget.ImageView, Fix Build Path, Edit XML”的错误
来源:互联网 发布:刺马真相知乎 编辑:程序博客网 时间:2024/05/16 09:51
自己花了几分钟的时间p了一个还算说的过去的图,迫不及待的将图片导入资源包里,然后在Andorid布局文件里调用图片当背景,但是
<span style="font-family:Microsoft YaHei;font-size:18px;">android:background="@drawable/empty_bg"</span>刚写好,软件就报错,提示“空指针”,紧接着是“Change to android.widget.ImageView, Fix Build Path, Edit XML”的错误,我丈二和尚摸不到头脑,怎么会出现这个错误呢?
自己没有找到问题根源,就百度了一番,依然没有找到问题的解决方法,随后使用Google引擎,搜索到的虽然是英文,但是我还是找到了问题的根源,那就是,我导入的图片文件时错误的!
检查了资源包,发现我导入的“图片”格式为“psd”,好吧,我从ps倒出来的是原文件,并没有选图片格式,然后导致Android开发环境不知道这个文件时干什么用的,随后报错!!!!
问题解决了!
0 0
- Android 报“Change to android.widget.ImageView, Fix Build Path, Edit XML”的错误
- Graphical Layout出现EditText (Change to android.widget.EditText, Fix Build Path, Edit XML)
- The following classes could not be found: - ImageView (Change to android.widget.ImageView, Fix Build
- The following classes could not be found - EditText (Change to android.widget.EditText, Fix Build Pa
- 关于java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.Edit 错误的解决
- android.widget.ImageView
- Android widget之ImageView
- Android调试:java.lang.ClassCastException: android.widget.ImageView错误
- fix android build error : undefined reference to __gxx_personality_v0 and __cxa_end_cleanup
- Android: java.lang.ClassCastException: android.widget.imageView cannot be cast to android.widget.tex
- Eclipse 导入android源代码build path错误
- 使用cocos compile -p android时总是报错误 BUILD FAILED \ant\build.xml:892
- android更新桌面小插件widget的imageview时 出现!!! FAILED BINDER TRANSACTION !!!错误
- Android Studio - How to Change Android SDK Path
- Android报错误:Error inflating class ImageView
- java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView解决办法
- ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView
- java.lang.ClassCastException~android.widget.ImageView cannot be cast to android.widget.Button~
- Codeforce 19D Points 线段树+离散化
- 在两台电脑之间通过网线、局域网快速传东西的几种方法
- 抓交通肇事犯
- 如果你也面试01-C语言中static的作用
- 【Maven】Maven Plugin示例:自己动手编写Maven插件
- Android 报“Change to android.widget.ImageView, Fix Build Path, Edit XML”的错误
- 如何去除字符串两端的空格
- Java构造方法
- Java基础——网络编程(上)之UDP
- C语言数据类型占字节数
- 【HAOI2011】【BZOJ2301】ProblemB
- datatable学习
- 中点圆算法
- 学习总结|Linux内核分析 第三周作业 - 网易云课堂