如何解决可绘制“此资源URL无法解析”
好的,我浏览了android文档,搜索了示例,并阅读了类似以下内容的stackoverflow问题:Cannot resolve symbol @drawable/ic_launcher,但我仍然不知道发生了什么。
我在Xamarin Android应用程序中有一个ImageButton,该按钮已在XML文件中定义。在这里:
<TextView
android:layout_width="40sp"
android:layout_height="wrap_content"
android:text=""
android:gravity="center" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/increase_quantity_button"
android:src="@drawable/arrow_drop_up"
android:contentDescription="@string/increaseQuantity"/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/decrease_quantity_button"
android:src="@drawable/arrow_drop_down"
android:contentDescription="@string/decreaseQuantity"/>
</LinearLayout>
<ImageButton
android:layout_width="40sp"
android:layout_height="wrap_content"
android:id="@+id/delete_item_button"
android:src="@drawable/delete"
android:contentDescription="@string/delete"/>
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/item_description"/>
然后,当我构建应用程序时,我得到:This resource URL cannot be resolved
我不知道下一步该怎么做。
解决方法
清洁您的解决方案,卸载您的项目,重新加载您的项目然后进行构建。 就像一个错误。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。