我是android新手。我正在尝试在我的应用程序中包含一个用于模式锁定的库。但是它显示的错误是这样的:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label 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 app模块:
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'
}
请帮我解决这个问题。
答案 0 :(得分:0)
将此添加到清单
bundle exec rake assets:precompile
将此添加到清单
中的应用程序xmlns:tools="http://schemas.android.com/tools"