Error caused by custom view: No Resource identifier found for attribute *in package *

Source: Internet
Author: User

This problem is especially directed to the third party jar bag of children's shoes,,, this engaged me for 2 hours, but still to solve the


For example, my xmlns is behind this.


650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/90/wKioL1YBGO-gUFANAAF7R-bLQgA081.jpg "title=" 6gy8kr $O 4%4ukyf) 7fouq]h.png "alt=" Wkiol1ybgo-gufanaaf7r-blqga081.jpg "/>



Google says the declaration's namespace needs to correspond to the package in Androidmanifest


The solution is: this xmlns:android= "http://schemas.android.com/apk/res/android" The android in the back should be the same as the package name defined in your androidmanifest


That is, remove the android behind Res and add the package name in your androidmanifest.xml.


Like the package= "Com.xiaoqiweather" I androidmanifest.xml under.

Then I'm going to have to pick up com.xiaoqiweather after res/in my xmlns.





Reference to this great God: http://blog.csdn.net/xiaoguohaha/article/details/12676691

This article is from the "10055957" blog, please be sure to keep this source http://10065957.blog.51cto.com/10055957/1697167

Error caused by custom view: No Resource identifier found for attribute *in package *

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.