美文网首页
错误笔记

错误笔记

作者: Robert_Wangyy | 来源:发表于2017-07-28 11:06 被阅读0次

错误提示:

Error:Execution failed for task ':app:processDebugManifest'.

> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31

is also present at [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).

Suggestion: add 'tools:replace="android:value"' to  element at AndroidManifest.xml:25:5-27:34 to override.

AndroidManifest.xml

applyplugin:'com.android.application'

android {

compileSdkVersion26

buildToolsVersion"25.0.3"

defaultConfig {

applicationId"com.robert.soft.enjoy"

minSdkVersion15

targetSdkVersion26

versionCode1

versionName"1.0"

testInstrumentationRunner"android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {

release {

minifyEnabledfalse

proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'

}

}

}

dependencies {

compile fileTree(dir:'libs',include: ['*.jar'])

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

excludegroup:'com.android.support',module:'support-annotations'

})

compile'com.android.support:appcompat-v7:26.+'

compile'com.android.support.constraint:constraint-layout:1.0.2'

testCompile'junit:junit:4.12'

compile'com.github.vondear:RxTools:v1.7.1.2'//请替换成上方 JitPack 最新的版本号

}

解决办法:

删除compile'com.android.support:appcompat-v7:26.+'即可

相关文章

网友评论

      本文标题:错误笔记

      本文链接:https://www.haomeiwen.com/subject/moicyttx.html