android – 错误:找不到与给定名称匹配的资源(在’theme’处,值为’@ style / AppTheme’)

前端之家收集整理的这篇文章主要介绍了android – 错误:找不到与给定名称匹配的资源(在’theme’处,值为’@ style / AppTheme’)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
![给我错误:(]

我尝试了一切……

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

在androidmanifest.xml中
,这是整个代码`

<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文件中.或改变:

android:theme="@style/AppTheme"

android:theme="@style/AppBaseTheme"

在清单应用程序标记中.

两者都应该是一样的.基本上,您的应用程序正在尝试使用不存在的AppBaseTheme.

猜你在找的Android相关文章