Android : Theme.appcompat.light no resource found

on Monday, March 23, 2015


I am using appcompat.light theme in my app, but I am getting an error msg error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. in three xml files: res/values/styles.xml , res/values-v11/styles.xml and res/values-v14/styles.xml, here is my app manifest code and styles.xml code:


manifest:



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="project.perfectdelivery"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >


styles.xml



<resources>

<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>

</resources>

0 comments:

Post a Comment