Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme')

Mohammed picture Mohammed · Nov 15, 2014 · Viewed 50.2k times · Source

![give me error : ( ]

i tryed every thing ...

[2014-11-15 17:56:06 - LoginActivity] C:\Users\Different\workspace\LoginActivity\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme'). [2014-11-15 17:56:06 - LoginActivity] [2014-11-15 17:56:07 - LoginActivity] C:\Users\Different\workspace\LoginActivity\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme'). [2014-11-15 17:56:07 - LoginActivity] [2014-11-15 17:56:10 - LoginActivity] C:\Users\Different\workspace\LoginActivity\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme'). [2014-11-15 17:56:10 - LoginActivity] [2014-11-15 17:56:12 - LoginActivity] C:\Users\Different\workspace\LoginActivity\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme'). [2014-11-15 17:56:12 - LoginActivity] im using eclipse "windows 7"

the error is in this line android:theme="@style/AppTheme" >

in androidmanifest.xml , this is the whole code `

<uses-feature
    android:name="android.hardware.microphone"
    android:required="false"/>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<application
    android:allowBackup="true"
    android:icon="@drawable/icon"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".LoginActivity"
        android:label="Log In">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".CallActivity"
        android:label="Make a Call"
        android:screenOrientation="portrait">
    </activity>
</application>

`

Answer

Hirak Chhatbar picture Hirak Chhatbar · Nov 15, 2014

There it is.

Either change:

style name="AppBaseTheme" 

to

style name="AppTheme" 

in your styles.xml file. Or change:

android:theme="@style/AppTheme"

to

android:theme="@style/AppBaseTheme"

in your manifest application tag.

Both should be the same. Basically, your app is trying to use AppBaseTheme which doesn't exist.