2016-06-25 3 views
1

Je reçois ces erreurs lors de la création d'une apk signée à l'aide d'Android Studio. Aidez-moi à construire l'application s'il vous plaît.Erreur Android Studio liée à Google Play Services

1.

Error:(42, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

2.

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/dna/Android/Sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

Ceci est mon fichier AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="appen.woltlab_bb" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="15" 
     android:targetSdkVersion="23" /> 

    <uses-permission android:name="android.permission.INTERNET" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity 
      android:name="appen.woltlab_bb.SplashScreen" 
      android:label="@string/app_name" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="appen.woltlab_bb.MainActivity" 
      android:label="@string/app_name" > 
      <intent-filter> 
       <action android:name="appen.woltlab_bb.MAINACTIVITY" /> 

       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 
     </activity> 
     <!-- 
ATTENTION: This was auto-generated to add Google Play services to your project for 
    App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. 
     --> 
     <meta-data 
      android:name="com.google.android.gms.version" 
      android:value="@integer/google_play_services_version" /> 
    </application> 

</manifest> 
+0

Essayez de nettoyer et de construire votre projet. –

+0

@isnotmenow, vous voulez dire partir de rien? – user227495

+0

Non, nettoyez votre projet depuis le menu Build -> Clean. –

Répondre

0

Je l'ai fixé. Cela a été dû à l'inclusion accidentelle d'un code d'indexation API généré automatiquement à partir d'un projet similaire par moi. Dans le cas où vous avez ce problème, commencez à partir de zéro et soyez prudent avec ce que vous importez de votre projet précédent.