2017-09-25 105 views
0

我是新來的android。和我想包括我application.But它顯示錯誤解鎖圖案像這樣的庫:Android清單合併失敗錯誤

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. 

這裏是我的庫清單文件:

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

這裏是我的應用程序的gradle模塊:

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

請幫我解決這個問題。

+1

分享您的問題的gradle應用模塊文件中 –

+0

檢查LIB「com.github.pro100svitlo:lockpattern:0.9。 3'有字符串的應用程序名稱是與您當前的應用程序衝突... – Audi

回答

0

添加這體現

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

這個應用程序添加清單

tools:node="replace" 
+0

是的..我已包括但它顯示相同的錯誤。 – bubbly

相關問題