我尝试了一切……
[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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。