Error:Execution failed for task ':arsenal:processDebugAndroidTestManifest'.> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:support-v13: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 manifestMerger8754986039253803499.xml:25:5-27:34 to override.

在引用第三方的Lib的时候可能会出现Lib依赖的 android.support的版本冲突。
那么怎么解决呢?

错误提示去修改 Manifest。 搞了好久,没有成功。。。

解决方法:
直接看错误提示的冲突的版本:[com.android.support:support-v13:25.3.1]

在被引用Lib所在Module的Build.gradle 中增加:

compile "com.android.support:support-v13:$support_version"

那么 这个 $support_version 是什么呢?是Project的Build.gradle中的

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:2.3.3'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        jcenter()    }}ext.support_version = "26.0.0-alpha1"  //看这行,这行。task clean(type: Delete) {    delete rootProject.buildDir}

解决方案二

    compile ('com.afollestad.material-dialogs:core:0.9.4.5') {        exclude group: 'com.android.support' //exclude 可以解决 lib冲突的问题。    }

更多相关文章

  1. Mac版Android studio中使用lambda表达式设置jdk版本问题
  2. andriod item内checked的setOnClickListener事件和setOnItemClic
  3. Android修改user版本默认关闭开发者选项模式,eng版本默认打开开
  4. android 集成腾讯bugly版本升级功能
  5. 一个提供Android各历史版本在线源码的网址
  6. Akita 一套Android快速开发库 发布1.2版本
  7. Android Studio 中编译JDK 版本配置
  8. Android 获取imei号码,获取手机型号和系统版本号等信息

随机推荐

  1. Android腾讯微薄客户端
  2. LayoutInflater.inflate()方法的介绍
  3. Android Dev Intro - GLSurfaceView.Requ
  4. 获取android webkit 源码
  5. Android(Java):Android ListView checkbo
  6. 第六章:基本控件
  7. eclipse android椤圭洰杞琣ndroid studio
  8. Error inflating class android.support.
  9. Android 复制到剪贴板
  10. Android中findViewById返回为空null的快