明显的问题

Manifest Problems

我的清单错误有一个小问题。我有一个 add_contact class 并且我在我的布局中添加了一个 CardView 。我想让我的 add_contact 和 show_contact 用于所有大于 14 的 api...我的调试器错误我在下面写:请帮助我。

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:design:26.0.0-alpha1] AndroidManifest.xml:27:9-38
is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:41 to override.

您可以 post 您的 build.gradle 依赖项吗?没有更多信息很难说,但看起来您所有的支持库都没有使用相同的版本。错误是说您的 CardView 同时拥有 26.0.0-alpha1 和 25.3.1。截至目前,26.0.2 是最新版本。我建议将它用于所有支持依赖项。

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:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.+'
testCompile 'junit:junit:4.12'
compile 'com.android.support:cardview-v7:25.3.1'

}