`
endual
  • 浏览: 3578896 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Android: Failed to convert @drawable/picture into a drawable

 
阅读更多

Android: Failed to convert @drawable/picture into a drawable

 

模拟器好像是会休眠的,于是,昨天晚上开着的模拟器,今天打开出现了

Android: Failed to convert @drawable/picture into a drawable

这个错误。

 

我查了下网上,提示说,重新启动下你的工程或者我们的eclipse就可以解决。我也是解决了。

选择工程---点击鼠标右键---选择close progect;

多次这样就好了。

 

你或许可以试试看

 

 

分享到:
评论

相关推荐

    android:drawable.xml相关应用

    <item android:drawable="@drawable/pic1"/> <!-- 当窗口失去焦点时显示的图片 --> <item android:state_window_focused="false" android:drawable="@drawable/pic1"/> <!-- 当被按下且聚焦时显示的图片 --> ...

    Android:Drawable样式和尺寸单位源代码

    <item android:state_pressed="true" android:drawable="@drawable/button_pressed" /> <!-- 按下状态 --> <item android:state_focused="true" android:drawable="@drawable/button_focused" /> <!-- 获得焦点...

    Android用drawable实行属性按钮3种状态demo

    android:drawable="@drawable/button_normal" /> <!-- 用一个drawable替换这里的引用 --> <!-- 按压状态 --> <item android:state_pressed="true" android:drawable="@drawable/button_pressed" /> <!-- 用一个...

    android 实现点击edittext的“小眼睛”切换明密文

    android:src="@drawable/ic_eye" android:layout_marginStart="8dp" android:layout_alignParentEnd="true" android:onClick="toggleVisibility" /> ``` 在这里,我们为EditText设置了`inputType="textPassword...

    Android:解决RadioGroup中RadioButton的图片自定义及每项间隔距离一样

    <item android:drawable="@drawable/radiobutton_unselected" android:state_checked="false"/> </selector> ``` 这里,@drawable/radiobutton_selected和@drawable/radiobutton_unselected分别是你为选中和未选中...

    Android XML attribute

    <item android:drawable="@drawable/frame2" android:duration="100" /> <item android:drawable="@drawable/frame3" android:duration="100" /> </animation-list> ``` #### `<bitmap>`: 位图绘制 **描述**:`...

    android修改控件外观(使用drawable资源)

    <item android:state_pressed="true" android:drawable="@drawable/button_pressed"/> <item android:state_focused="true" android:drawable="@drawable/button_focused"/> <item android:drawable="@drawable/...

    Android的Drawable学习Demo

    <item android:drawable="@drawable/shape2" android:maxLevel="1"/> </level-list> ``` 在代码中,我们可以通过改变LevelListDrawable的级别来切换显示的Drawable: ```java LevelListDrawable ...

    Android 加载动画的实现

    <item android:duration="130" android:drawable="@drawable/image_loading_01"></item> <item android:duration="130" android:drawable="@drawable/image_loading_02"></item> <item android:duration="130" ...

    android 自定义RadioButton的样式

    <item android:state_enabled="true" android:state_checked="false" android:drawable="@drawable/checknull"/> </selector> ``` 在这个例子中,我们定义了一个名为`button_drawable`的Selector资源。它包含了两...

    anddroid SwitchCompat,使用demo。

    <androidx.appcompat.widget.SwitchCompat android:layout_gravity="center" android:id="@+id/s_v" ... android:thumb="@drawable/thumb" app:track="@drawable/track" android:text="力控开关" />

    中国象棋源码设计原理.zip

    <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".ChessActivity" android:label="@string/app_name"> <action android:name="android.intent.action...

    中国象棋源码设计参考.zip

    <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".ChessActivity" android:label="@string/app_name"> <action android:name="android.intent.action...

    Android Tag 带删除控件

    TagsEditText:tagsCloseImageRight="@drawable/tag_close" TagsEditText:tagsBackground="@drawable/square" TagsEditText:tagsCloseImageLeft="@drawable/dot" TagsEditText:tagsTextColor="@color/blackOlive...

    Android设置虚线、圆角、渐变

    android:background="@drawable/line_style" /> ``` ### 二、圆角(Rounded Corners) 同样,我们可以通过`Shape Drawable`来实现圆角效果。创建一个名为`rounded_corner.xml`的XML文件: ```xml <shape xmlns:...

    自定义android RadioButton样式

    <item android:drawable="@drawable/rb_checked" android:state_checked="true" /> <item android:drawable="@drawable/rb_unchecked" android:state_checked="false" /> </selector> ``` 这里的`@drawable/rb_...

    Android实训购物车页面

    -<LinearLayout android:background="@drawable/aaa" android:weightSum="1" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" xmlns:android=...

    ratingbar 自定义星星效果

    android:drawable="@drawable/xixi0" /> <item android:id="@+android:id/secondaryProgress" android:drawable="@drawable/xixi0" /> <item android:id="@+android:id/progress" android:drawable="@drawable/...

    Android selector 完整demo

    <item android:drawable="@drawable/button_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/button_focused" android:state_focused="true"/> <item android:drawable="@drawable/...

    Android自定义Ratingbar星星实现评分

    <item android:state_pressed="true" android:drawable="@drawable/star_half"/> <item android:state_focused="true" android:drawable="@drawable/star_half"/> <item android:drawable="@drawable/star_empty...

Global site tag (gtag.js) - Google Analytics