2014-11-15 11 views
7

[darmi errore: (]!Errore: Nessun risorsa trovato che corrisponde al nome dato (a 'tema', con valore '@ stile/AppTheme')

Ho provato ogni cosa ...

[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'errore è in questa linea android:theme="@style/AppTheme" >

in AndroidManifest.xml , questo è l'intero codice di `

<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

post your styles.xml –

+0

Mohammed

+2

Dal momento che il tema si chiama ** ** AppBaseTheme, 'android: theme = "@ stile/AppTheme"' 'dovrebbe essere android: theme = "@ stile/AppBaseTheme">' –

risposta

17

Eccolo.

In entrambi i cambiamenti:

style name="AppBaseTheme" 

a

style name="AppTheme" 

nel vostro styles.xml file. O modificare:

android:theme="@style/AppTheme" 

a

android:theme="@style/AppBaseTheme" 

nel tag manifesto dell'applicazione.

Entrambi dovrebbero essere uguali. Fondamentalmente, la tua app sta cercando di utilizzare AppBaseTheme che non esiste.

+0

ciao Hirak Chhatbar, ha funzionato senza errori, ma quando eseguo il programma mi dà il messaggio di errore "sfortunatamente, com.sinch.apptoappcall si è fermato" – Mohammed

+0

plz pubblica il tuo errore logcat. ci deve essere qualcosa di sbagliato nel tuo codice. –

+0

non riesco a caricare l'intero file perché è troppo lungo, ho caricato l'ultimo http://textuploader.com/on5j – Mohammed

Problemi correlati