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 如何解决dialog弹出时无法捕捉Activity的back事件 在...
Android实现自定义带文字和图片的Button 在Android开发中经常...
Android 关于长按back键退出应用程序的实现最近在做一个Andr...
android自带的时间选择器只能精确到分,但是对于某些应用要求...