2014-11-15 24 views
7

[cho tôi lỗi: (]!Lỗi: Không tìm thấy tài nguyên phù hợp với tên cho trước (tại 'chủ đề' với giá trị '@ style/AppTheme')

i tryed tất cả mọi thứ ...

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

lỗi là ở dòng này android:theme="@style/AppTheme" >

trong AndroidManifest.xml , đây là toàn bộ mã '

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

`

+0

đăng styles.xml –

+0

Mohammed

+2

Kể từ khi chủ đề của bạn được đặt tên ** AppBaseTheme **, 'android: theme = "@ style/AppTheme"' nên được 'android: theme = "@ style/AppBaseTheme">' –

Trả lời

17

Có.

Hoặc thay đổi:

style name="AppBaseTheme" 

để

style name="AppTheme" 

trong styles.xml tập tin của bạn. Hoặc thay đổi:

android:theme="@style/AppTheme" 

để

android:theme="@style/AppBaseTheme" 

trong thẻ ứng dụng biểu hiện của bạn.

Cả hai đều giống nhau. Về cơ bản, ứng dụng của bạn đang cố gắng sử dụng AppBaseTheme không tồn tại.

+0

chào Hirak Chhatbar, nó hoạt động không có lỗi, nhưng khi tôi chạy chương trình cho tôi thông báo lỗi "không may, com.sinch.apptoappcall đã dừng" – Mohammed

+0

plz đăng logcat lỗi của bạn. phải có một cái gì đó sai với mã của bạn. –

+0

tôi không thể tải lên toàn bộ tệp vì quá dài, tôi đã tải lên http://textuploader.com/on5j – Mohammed

Các vấn đề liên quan