如何修复此错误?
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:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
is also present at [com.android.support:gridlayout-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.
答案 0 :(得分:1)
您使用的是其他版本的Google支持库。
com.android.support:appcompat-v7:26.0.0-alpha1
另外
com.android.support:gridlayout-v7:25.3.1
为两个库使用通用版本。这将有所帮助。
我认为您使用的是 Compile SDK 26 ,因此请使用以下两个库。
com.android.support:appcompat-v7:26.0.0-alpha1
com.android.support:gridlayout-v7:26.0.0-alpha1