qq_30809319
Lavichord
2017-04-29 04:36

导入RecyclerView-v7的时候gradle build出错

10
  • gradle
  • android

我准备使用RecyclerView,在dependencies导入RecyclerView-v7后gradle build出现以下错误。

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:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.

按照提示在meta-data标签添加tools:replace="android:value"也没有用,会报以下错误。

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

Manifest merger failed with multiple errors, see logs

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答