Android: сбой слияния манифеста, ком. android .support: support-v4: 26.1.0
Кажется, я получаю сообщение об ошибке:
Ошибка слияния манифеста: метаданные атрибута # android .support. VERSION@value значение = (26.0.2) из [com. android .support: процентов: 26.0.2] AndroidManifest. xml: 25: 13-35 также присутствует в [com. android .support: support-v4: 26.1.0] AndroidManifest. xml: 28: значение 13-35 = (26.1.0). Предложение: добавьте 'tools: replace = "android: value"' к элементу на AndroidManifest. xml: 23: 9-25: 38, чтобы переопределить.
Как я могу решить эту проблему ? Это файл build.gradle моего приложения:
android {
compileSdkVersion 28
buildToolsVersion '28.0.2'
defaultConfig {
applicationId "tw.com.iac.sam_qw25"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
...
}dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.support:wearable:2.4.0'
implementation 'com.google.android.gms:play-services-wearable:16.0.1'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'com.android.support:percent:26.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
compileOnly 'com.google.android.wearable:wearable:2.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'}
И это build.gradle проекта:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}