错误:找不到与给定名称匹配的资源(在“主题"处,值为"@ style/AppTheme") [英] Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme')

查看:82
本文介绍了错误:找不到与给定名称匹配的资源(在“主题"处,值为"@ style/AppTheme")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

![给我错误:(]

我尽了一切努力...

i tryed every thing ...

[2014-11-15 17:56:06-LoginActivity] C:\ Users \ Different \ workspace \ LoginActivity \ AndroidManifest.xml:15: 错误:错误:找不到与给定名称匹配的资源(位于 值"@ style/AppTheme"的主题"). [2014-11-15 17:56:06- LoginActivity] [2014-11-15 17:56:07-LoginActivity] C:\ Users \ Different \ workspace \ LoginActivity \ AndroidManifest.xml:15: 错误:错误:找不到与给定名称匹配的资源(位于 值"@ style/AppTheme"的主题"). [2014-11-15 17:56:07- LoginActivity] [2014-11-15 17:56:10-LoginActivity] C:\ Users \ Different \ workspace \ LoginActivity \ AndroidManifest.xml:15: 错误:错误:找不到与给定名称匹配的资源(位于 值"@ style/AppTheme"的主题"). [2014-11-15 17:56:10- LoginActivity] [2014-11-15 17:56:12-LoginActivity] C:\ Users \ Different \ workspace \ LoginActivity \ AndroidManifest.xml:15: 错误:错误:找不到与给定名称匹配的资源(位于 值"@ style/AppTheme"的主题"). [2014-11-15 17:56:12- LoginActivity] im使用eclipse"windows 7"

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

错误在此行android:theme="@style/AppTheme" >

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

,这就是整个代码

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

`

推荐答案

有.

任何一项更改:

style name="AppBaseTheme" 

style name="AppTheme" 

在您的 styles.xml 文件中.或更改:

in your styles.xml file. Or change:

android:theme="@style/AppTheme"

android:theme="@style/AppBaseTheme"

在清单应用程序标记中.

in your manifest application tag.

两者应该相同.基本上,您的应用尝试使用不存在的AppBaseTheme.

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

这篇关于错误:找不到与给定名称匹配的资源(在“主题"处,值为"@ style/AppTheme")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆