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 '