After I updated to SDK version 26 I tried to build an apk but got this error:
Error:Execution failed for task ':app:transformClassesWithFirebasePerformancePluginForFacebookDebug'.
> android/support/v7/app/ActionBarActivity
Stay with SDK version 25 is fine but got error message in build.gradle said:
all com.android.support libraries must use the exact same version
Dependency Report (where it failed):
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:transformClassesWithFirebasePerformancePluginForFacebookDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithFirebasePerformancePluginForFacebookDebug'.
> android/support/v7/app/ActionBarActivity
Update 1: I've found the root cause but still, need some suggestions. I looked into dependencies report. Support library 26.1.0 is from another library
+--- com.onesignal:OneSignal:3.6.2
| +--- com.google.android.gms:play-services-gcm:[10.2.1,11.3.0) -> 11.2.2
| | +--- com.google.android.gms:play-services-base:11.2.2 (*)
| | +--- com.google.android.gms:play-services-basement:11.2.2 (*)
| | \--- com.google.android.gms:play-services-iid:11.2.2
| | +--- com.google.android.gms:play-services-base:11.2.2 (*)
| | \--- com.google.android.gms:play-services-basement:11.2.2 (*)
| +--- com.google.android.gms:play-services-location:[10.2.1,11.3.0) -> 11.2.2
| | +--- com.google.android.gms:play-services-base:11.2.2 (*)
| | +--- com.google.android.gms:play-services-basement:11.2.2 (*)
| | \--- com.google.android.gms:play-services-tasks:11.2.2 (*)
| +--- com.android.support:support-v4:[26.0.0,26.2.0) -> 26.1.0 (*)
| \--- com.android.support:customtabs:[26.0.0,26.2.0) -> 26.1.0 (*)
\---
Update 2: I've set the facebook sdk usage as below:
compile('com.facebook.android:facebook-android-sdk:4.26.0') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
but still getting the same error
So How can I resolve the conflict from this?