Android Debug Error-no Resource identifier found for attribute ' showasaction '

Source: Internet
Author: User

Today, when I was studying the technology of rice advertising, the first time I compiled the Android sample project they provided, the following error occurred:

[2014-11-29 11:28:25-com.youmi.android.offerdemo.youmioffersadsdemo]

W/resourcetype (15184): Bad XML block:header size 201 or total size 0 is larger

than data size 0
[2014-11-29 11:28:25-com.youmi.android.offerdemo.youmioffersadsdemo] E:

\download2010\tuiguang\youmi\youmi_android_offerwall_sdk_v4.10_2014-11-

24\youmiandroidsdk\demo\offers\res\menu\main.xml:3: error:no Resource Identifier

Found for attribute ' showasaction ' in the package ' Android '


After a number of articles from the network of reference analysis is basically determined that the cause of the above error is the XML content error, resulting in the inability to generate R.java files. At this point, the. java file also appears with R Resources unable to find the corresponding error. Also, the compile-time error will appear similar to the above.


There are two main ways of solving this problem:

1, modify the error in the possible XML file;

The 2,android SDK version may not be correct, so attribute ' showasaction ' is not supported in the lower version.


In my case, this is the second situation: I modified the Android 2.3.3 to 4.0, and then the compilation is OK. Refer to the graphic below.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/22/wKioL1R5R3PCIIiiAAL70Nkqb8E140.jpg "title=" Untitled. jpg "alt=" wkiol1r5r3pciiiiaal70nkqb8e140.jpg "/>


This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1584423

Android Debug Error-no Resource identifier found for attribute ' showasaction '

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.