First execute ./gradlew app:dependencies
in the Terminal for your app then you will get
+--- com.android.support:design:26.0.1
| +--- com.android.support:support-v4:26.0.1 -> 27.0.1
| | +--- com.android.support:support-compat:27.0.1
| | | +--- com.android.support:support-annotations:27.0.1
| | | \--- android.arch.lifecycle:runtime:1.0.0
| | | +--- android.arch.lifecycle:common:1.0.0
| | | \--- android.arch.core:common:1.0.0
| | +--- com.android.support:support-media-compat:27.0.1
| | | +--- com.android.support:support-annotations:27.0.1
| | | \--- com.android.support:support-compat:27.0.1 (*)
| | +--- com.android.support:support-core-utils:27.0.1
| | | +--- com.android.support:support-annotations:27.0.1
| | | \--- com.android.support:support-compat:27.0.1 (*)
| | +--- com.android.support:support-core-ui:27.0.1
| | | +--- com.android.support:support-annotations:27.0.1
| | | \--- com.android.support:support-compat:27.0.1 (*)
| | \--- com.android.support:support-fragment:27.0.1
| | +--- com.android.support:support-compat:27.0.1 (*)
| | +--- com.android.support:support-core-ui:27.0.1 (*)
| | +--- com.android.support:support-core-utils:27.0.1 (*)
| | \--- com.android.support:support-annotations:27.0.1
| +--- com.android.support:appcompat-v7:26.0.1 -> 27.0.1
| | +--- com.android.support:support-annotations:27.0.1
| | +--- com.android.support:support-core-utils:27.0.1 (*)
| | +--- com.android.support:support-fragment:27.0.1 (*)
| | +--- com.android.support:support-vector-drawable:27.0.1
| | | +--- com.android.support:support-annotations:27.0.1
| | | \--- com.android.support:support-compat:27.0.1 (*)
| | \--- com.android.support:animated-vector-drawable:27.0.1
| | +--- com.android.support:support-vector-drawable:27.0.1 (*)
| | \--- com.android.support:support-core-ui:27.0.1 (*)
| +--- com.android.support:recyclerview-v7:26.0.1
| | +--- com.android.support:support-annotations:26.0.1 -> 27.0.1
| | +--- com.android.support:support-compat:26.0.1 -> 27.0.1 (*)
| | \--- com.android.support:support-core-ui:26.0.1 -> 27.0.1 (*)
| \--- com.android.support:transition:26.0.1
| +--- com.android.support:support-annotations:26.0.1 -> 27.0.1
| \--- com.android.support:support-v4:26.0.1 -> 27.0.1 (*)
+--- com.android.support:appcompat-v7:26.0.1 -> 27.0.1 (*)
+--- com.android.support:recyclerview-v7:26.0.1 (*)
+--- com.facebook.android:facebook-android-sdk:4.+ -> 4.29.0
| +--- com.facebook.android:facebook-core:4.29.0
| | +--- com.parse.bolts:bolts-android:1.4.0
| | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | \--- com.parse.bolts:bolts-applinks:1.4.0
| | | \--- com.parse.bolts:bolts-tasks:1.4.0
| | +--- com.android.support:support-annotations:27.0.1
| | \--- com.android.support:support-core-utils:27.0.1 (*)
| +--- com.facebook.android:facebook-common:4.29.0
| | +--- com.facebook.android:facebook-core:4.29.0 (*)
| | +--- com.android.support:appcompat-v7:27.0.1 (*)
| | +--- com.android.support:cardview-v7:27.0.1
| | | \--- com.android.support:support-annotations:27.0.1
| | +--- com.android.support:customtabs:27.0.1
| | | +--- com.android.support:support-compat:27.0.1 (*)
| | | \--- com.android.support:support-annotations:27.0.1
| | +--- com.android.support:support-v4:27.0.1 (*)
| | \--- com.google.zxing:core:3.3.0
| +--- com.facebook.android:facebook-login:4.29.0
| | +--- com.facebook.android:facebook-core:4.29.0 (*)
| | \--- com.facebook.android:facebook-common:4.29.0 (*)
| +--- com.facebook.android:facebook-share:4.29.0
| | +--- com.facebook.android:facebook-core:4.29.0 (*)
| | \--- com.facebook.android:facebook-common:4.29.0 (*)
| +--- com.facebook.android:facebook-places:4.29.0
| | \--- com.facebook.android:facebook-core:4.29.0 (*)
| +--- com.facebook.android:facebook-applinks:4.29.0
| | \--- com.facebook.android:facebook-core:4.29.0 (*)
| \--- com.facebook.android:facebook-messenger:4.29.0
| \--- com.facebook.android:facebook-core:4.29.0 (*)
\--- com.crashlytics.sdk.android:crashlytics:2.6.8
+--- com.crashlytics.sdk.android:beta:1.2.5
| \--- io.fabric.sdk.android:fabric:1.3.17
+--- io.fabric.sdk.android:fabric:1.3.17
+--- com.crashlytics.sdk.android:crashlytics-core:2.3.17
| +--- io.fabric.sdk.android:fabric:1.3.17
| \--- com.crashlytics.sdk.android:answers:1.3.13
| \--- io.fabric.sdk.android:fabric:1.3.17
\--- com.crashlytics.sdk.android:answers:1.3.13 (*)
Search by com.android.support
you can see that there is many place use it with 2 version 27.0.1
and 26.0.1
. This is the reason why you have warning. To fix it
First way: Make you app only use 26.0.1
by exclude all com.android.support... 27.0.1
of facebook like
compile ('com.facebook.android:facebook-android-sdk:4.+') {
exclude group:'com.android.support', module:'support-annotations'
exclude group:'com.android.support', module:'support-core-utils'
exclude group:'com.android.support', module:'appcompat-v7'
exclude group:'com.android.support', module:'customtabs'
exclude group:'com.android.support', module:'support-v4'
exclude group: 'com.android.support', module:'cardview-v7'
}
Exclude work well but there is a problem: cardview-v7
and customtabs
is missing (because currently no library provide cardview-v7
and customtabs
). So you need to compile
compile 'com.android.support:cardview-v7:26.0.1'
compile 'com.android.support:customtabs:26.0.1'
Second way: Make you app only use 27.0.1
by
compile 'com.android.support:design:26.0.1'
compile 'com.android.support:appcompat-v7:26.0.1'
compile 'com.android.support:recyclerview-v7:26.0.1'
You can the flow to solve the similar problem here.
Hope it help