【发布时间】:2014-02-11 20:28:38
【问题描述】:
我正在使用 Eclipse 构建一个 Android 应用程序。我正在尝试在应用程序打开时创建一个简单的图像显示。
我已将我的 intro_image.png 保存在我工作区的 res\drawable-hdpi 上,并使用以下代码为布局创建了另一个 xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/intro_image">
</LinearLayout>
当我在图形布局上查看结果时出现错误消息:“无法将@drawable/into_image 转换为可绘制对象。无法解析资源@drawable/intro_image”
我该如何解决这个问题? 谢谢。
【问题讨论】:
-
尝试清理/构建您的项目。