2017-09-25 110 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

相关问题