2017-09-25 1 views
0

Je suis nouveau sur android. Et je essaie d'inclure une bibliothèque pour le verrouillage de motif dans mon application.But il est montrant erreur comme ceci:android manifeste fusion erreur échouée

Error:Execution failed for task ':app:processDebugManifest'. 
> Manifest merger failed : Attribute [email protected] value=(@string/app_name) from AndroidManifest.xml:8:9-41 
is also present at [com.github.pro100svitlo:lockpattern:0.9.3] AndroidManifest.xml:13:9-45 value=(@string/lpv_app_name). 
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:5:5-19:19 to override. 

Et voici mon fichier manifeste pour la bibliothèque:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 

package="com.example.lockpattern"> 

<application 

    android:allowBackup="true" 
    android:label="@string/lpv_app_name"> 

</application> 

</manifest> 

Voici mon application gradle module:

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion "25.0.0" 
defaultConfig { 
    applicationId "com.example.intel.patternverification2stepmethod" 
    minSdkVersion 16 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
repositories { 
    jcenter() 
} 

} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:23.1.1' 
compile 'com.android.support:design:23.1.1' 
compile 'com.github.pro100svitlo:lockpattern:0.9.3' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
testCompile 'junit:junit:4.12' 
} 

S'il vous plaît aidez-moi à résoudre ce problème.

+1

Partagez votre fichier module app gradle à la question –

+0

Vérifiez com.github.pro100svitlo » lib: lockpattern: 0,9. 3 'a app-nom de chaîne qui est en conflit avec votre application actuelle ... – Audi

Répondre

0

Ajouter ce manifeste à

xmlns:tools="http://schemas.android.com/tools" 

Ajouter à cette application à l'intérieur manifeste

tools:node="replace" 
+0

Ouais .. J'ai inclus.Mais montrant la même erreur. – bubbly