android styles.xml no resource found that matches the given name of: attr -
i downloaded project work on , has lot of errors. it's alarm application. doesn't create r file because of errors either. have seen working build don't have code compiles because of these errors. thought dependency issue can't seem figure out. manifest file minsdk=14 , targetsdk = 19 properties target: android-19. appreciated. thanks.
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <!-- base application theme, dependent on api level. theme replaced appbasetheme res/values-vxx/styles.xml on newer devices.
--> <style name="preferencestheme"> <item name="android:background">#000000</item> </style> <style name="appbasetheme" parent="android:theme.light"> <!-- theme customizations available in newer api levels can go in res/values-vxx/styles.xml, while customizations related backward-compatibility can go here.
--> </style> <!-- application theme. --> <style name="apptheme" parent="appbasetheme"> <!-- customizations not specific particular api-level can go here. --> <item name="android:windownotitle">true</item> <item name="android:listselector">@color/appbgcolor</item> <item name="android:scrollbarthumbvertical">@drawable/rounded_vertical_scroll_track</item> <item name="android:scrollbarthumbhorizontal">@drawable/rounded_vertical_scroll_track</item> <item name="android:scrollbarsize">5dp</item> <item name="android:scrollbarstyle">insideoverlay</item> <item name="switchstyle">@style/switch_dark</item> </style> <style name="switch_dark"> <item name="track">@drawable/switch_track_holo_dark</item> <item name="thumb">@drawable/switch_inner_holo_dark</item> <item name="texton">@string/texton</item> <item name="textoff">@string/textoff</item> <item name="thumbtextpadding">12dip</item> <item name="switchminwidth">96dip</item> <item name="switchpadding">16dip</item> <item name="switchtextappearance">@style/textappearance</item> </style> <style name="textappearance"> <item name="textcolor">@color/whitecolor</item> <item name="textcolorhighlight">@color/whitecolor</item> <item name="textcolorhint">@color/whitecolor</item> <item name="textcolorlink">@color/whitecolor</item> <item name="textsize">16sp</item> </style> <!-- normal text size --> <style name="normaltextsize" parent="@android:style/textappearance"> <item name="android:textsize">14sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">normal</item> </style> <!-- normal text size bold --> <style name="normaltextsizewithbold" parent="@android:style/textappearance"> <item name="android:textsize">14sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">bold</item> </style> <!-- medium text size --> <style name="mediumtextsize" parent="@android:style/textappearance"> <item name="android:textsize">16sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">normal</item> </style> <!-- medium text size bold --> <style name="mediumtextsizewidthbold" parent="@android:style/textappearance"> <item name="android:textsize">16sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">bold</item> </style> <!-- large text size --> <style name="largetextsize" parent="@android:style/textappearance"> <item name="android:textsize">18sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">normal</item> </style> <!-- large text size bold --> <style name="largetextsizewithbold" parent="@android:style/textappearance"> <item name="android:textsize">18sp</item> <item name="android:textcolor">@color/whitecolor</item> <item name="android:textstyle">bold</item> </style> <!-- custom dialog --> <style name="dialoganimation"> <item name="android:windowenteranimation">@anim/slide_up_dialog</item> <item name="android:windowexitanimation">@anim/slide_out_dialog</item> </style> <!-- animation dialog box --> <style name="dialogslideanim" parent="@android:style/theme.dialog"> <item name="android:windowanimationstyle">@style/dialoganimation</item> </style> <style name="myholo" parent="@android:style/textappearance.widget.textview"> <item name="android:edittextcolor">#ffffff</item> <item name="android:textsize">100sp</item> </style> <style name="mypreferencestheme"> <item name="android:windowbackground">@color/appbgcolor</item> <item name="android:background">@color/appbgcolor</item> </style> here errors:
c:\res\values\styles.xml error:(38, 22) no resource found matches given name: attr 'switchstyle'.
error:(53, 22) no resource found matches given name: attr 'textcolor'.
error:(54, 22) no resource found matches given name: attr 'textcolorhighlight'.
error:(55, 22) no resource found matches given name: attr 'textcolorhint'. error:(56, 22) no resource found matches given name: attr 'textcolorlink'.
error:(57, 22) no resource found matches given name: attr 'textsize'.
error:(47, 22) no resource found matches given name: attr 'switchminwidth'.
error:(48, 22) no resource found matches given name: attr 'switchpadding'.
error:(49, 22) no resource found matches given name: attr 'switchtextappearance'.
error:(45, 22) no resource found matches given name: attr 'textoff'.
error:(44, 22) no resource found matches given name: attr 'texton'.
error:(43, 22) no resource found matches given name: attr 'thumb'.
error:(46, 22) no resource found matches given name: attr 'thumbtextpadding'.
error:(34, 88) no resource found matches given name: attr 'track'.
i had similar issue, different resources missing. in case, missing sdk 1 of appcompat support library needed.
check build configuration , check have installed every sdk referencing.
this because, event if can work on lower api's during build use resources same sdk library version use. example, if use com.android.support:appcompat-v7:21.0.0 , plan run app on kitkat (19) build need have lollipop sdk.
Comments
Post a Comment