我嘗試登錄實現由Facebook SDK衝突我也跟着在這裏引導線 https://developers.facebook.com/docs/facebook-login/android 但每次我碰到下面的錯誤與Android支持26 +庫
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute meta-data#[email protected] 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:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.
和這是我的build.gradle相依
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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.jakewharton:butterknife:8.7.0'
compile 'com.android.support:design:26.+'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.android.support:support-v4:26.+'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.facebook.android:facebook-android-sdk:4.+'
}
我試圖屁股建議增加tools:value
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:25.3.1">
如何在不將我的編譯SDK降級到25的情況下解決衝突?
編譯 'com.facebook.android:facebook-android-sdk:4.15.0' 使用此 –
的建議u可以使用的工具:更換=「機器人:價值「在清單和嘗試? – Raghavendra
@Raghavendra是,它返回以下錯誤 錯誤:執行任務':app:processDebugManifest'失敗。 >清單合併失敗,出現多個錯誤,請參閱日誌 – a3adel