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

橙三吉。 提交于 2019-12-21 08:54:53

问题


![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>

`


回答1:


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.



来源:https://stackoverflow.com/questions/26947246/error-no-resource-found-that-matches-the-given-name-at-theme-with-value-st

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!