I am create a login page with twitter account for my app. And the above error is occur when i build my project.
values/strings.xml
<style name="Base.TextAppearance.AppCompat.Medium">
<item name="android:textSize">@dimen/abc_text_size_medium_material</item>
<item name="android:textColor">?android:attr/textColorSecondary</item>
</style>
Don't
values/strings.xml
Wrong path .Put this on your style section .
A style is defined in an XML resource that is separate from the XML that specifies the layout. This XML file resides under res/values/ directory of your project and will have as the root node which is mandatory for the style file.
http://www.tutorialspoint.com/android/android_styles_and_themes.htm
THIS is values/string.xml
<string name="activity_name">Home</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
THIS is values/style.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="toolbarStyle">@style/Custom.Widget.Toolbar</item>
</style>
Both are different things
I have get this error and fix it by this way: problem was some style items in style.xml file that does not have any value, something like below; just comment or remove that line: here is not anything
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.