Android Sdk 26 Build Error
After I updated to SDK version 26 I tried to build an apk but got this error: Error:Execution failed for task ':app:transformClassesWithFirebasePerformancePluginForFacebookDebug'.
Solution 1:
You need to stick with support library 25.3.1
, because facebook sdk version 4.26.0 still using it. You can take a look at its build.gradle, it still using 25.3.1
:
// Facebook Dependencies
compile'com.android.support:support-v4:25.3.1'compile'com.android.support:appcompat-v7:25.3.1'compile'com.android.support:cardview-v7:25.3.1'compile'com.android.support:customtabs:25.3.1'
For the onesignal error, please read Troubleshooting Androidn about it, here the excerpt:
OneSignal automatically adds the following dependencies;
com.google.android.gms - Version 11.2.+ com.android.support - Version 26.1.+
If you get mixed version warnings like above in your build.gradle please make sure to update your other dependencies to match these versions.
If you must keep using an older version of these decencies add the following 4 lines, replacing the versions with the ones you require.
compile'com.google.android.gms:play-services-gcm:11.2.+'compile'com.google.android.gms:play-services-location:11.2.+'compile'com.android.support:support-v4:26.1.+'compile'com.android.support:customtabs:26.1.+'
Solution 2:
Eventually, I resolved it by assigning version compulsorily. Thanks to @Eugen Pechanec and @ישו אוהב אותך for inspiring me.
def gmsVersion = '11.2.2'compile("com.google.android.gms:play-services-gcm:${gmsVersion}") {
force = true
}
compile("com.google.android.gms:play-services-location:${gmsVersion}") {
force = true
}
def androidSupportVersion = '25.3.1'compile("com.android.support:support-v4:${androidSupportVersion}") {
force = true
}
compile("com.android.support:customtabs:${androidSupportVersion}") {
force = true
}
Post a Comment for "Android Sdk 26 Build Error"