今天想在项目中放一个好看点的地址选择器,建立一个新项目,通过
compile 'com.smarttop:jd-address:1.0.8'
引入到自己新建的项目中,可以正常使用,但是一旦引入到现有的项目中,就会出现
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 <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
然后按照提示在Application下以及meta-data下添加下面这行代码
tools:replace="android:icon, android:theme"
接着又会报下面这个错误
tools:replace specified at line:364 for attribute android:theme, but no new value specified
F:\egoopayProject\WinShoppingMall\app\src\main\AndroidManifest.xml Error:
Validation failed, exiting
请问有人遇到过吗?该怎么解决?
排除冲突的依赖可以吗