The Android Import project appears with a style error, menu error

Source: Internet
Author: User

The Android Import project appears with a style error, menu error

Style

Check the error points under Res/values/styles.xml. <style name="Appbasetheme"Parent="Theme.AppCompat.Light" >Change this to <style name=."Appbasetheme"Parent="Android:Theme.Light" >//path: Res/values-11/styles.xml <style name="Appbasetheme" parent=" Theme.AppCompat.Light ">//change this to <style name=" Appbasetheme " parent=" Android:Theme.Holo.Light " >//path: Res/values-14/styles.xml <style name="Appbasetheme" parent=" Theme.AppCompat.Light.DarkActionBar ">//change this to <style name=" Appbasetheme " parent=" Android : Theme.Holo.Light.DarkActionBar ">             

Meun

No Resource Identifier foundForAttribute' Showasaction 'InchPackage' Android ' when running a project in a Menu.xml file Item property android:showasaction error No resource Identifier foundForattribute  ' showasaction ' in Span class= "Hljs-keyword" >package  ' Android ' Google, the Foreigner said is the version issue, Showasaction was added Span class= "Hljs-keyword" >in API level 11 to elevate the API to 11, add  "Android-support-v7-appcompat.jar" to Android Library (Private Libraries) android:showasaction =  "never" when your application target is set to a hive platform, you can use all the features provided by the Action Bar to place your Options menu item in the upper-right corner of the action Bar, which is more convenient for users,  The main menu item property that controls the behavior is android:showasaction.  The acceptable values for this property are:  1, always: This value causes the menu item to be displayed on the action bar.   2, Ifroom: If there is enough space, this value causes the menu item to appear on the action bar.   3, never: This value causes the menu item to never appear on the action bar.  4, Withtext: This value causes the menu item and its icon to be displayed together with the text of the menus. However, this high version is not used here, so it is OK to delete this property here. 

An Android Import project has a style error, menu error

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.