Je rencontre cette erreur:
En obtenant un arbre de dépendance, j'ai constaté qu'il n'y a rien de mal avec les dessins vectoriels animés, mais le dernier sdk de Facebook a la version précédente de l'onglet personnalisé support-v4. J'ai essayé d'exclure avec la commande exclude group mais cela ne fonctionne pas. Voici mon arbre de dépendance:
+--- com.facebook.Android:facebook-Android-sdk:4.26.0@aar
| +--- com.Android.support:support-v4:26.0.1@aar
| | +--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-media-compat:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-core-utils:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-core-ui:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-fragment:26.0.1@aar
| | +--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-core-ui:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-core-utils:26.0.1@aar
| | +--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-compat:26.0.1@aar
| | \--- com.Android.support:support-annotations:26.0.1@jar
| +--- com.Android.support:appcompat-v7:26.0.1@aar
| | +--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-v4:26.0.1@aar
| | | +--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | +--- com.Android.support:support-media-compat:26.0.1@aar
| | | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | | \--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | +--- com.Android.support:support-core-utils:26.0.1@aar
| | | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | | \--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | +--- com.Android.support:support-core-ui:26.0.1@aar
| | | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | | \--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-fragment:26.0.1@aar
| | | +--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | +--- com.Android.support:support-core-ui:26.0.1@aar
| | | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | | \--- com.Android.support:support-compat:26.0.1@aar
| | | | \--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-core-utils:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | +--- com.Android.support:support-vector-drawable:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:animated-vector-drawable:26.0.1@aar
| | +--- com.Android.support:support-vector-drawable:26.0.1@aar
| | | +--- com.Android.support:support-annotations:26.0.1@jar
| | | \--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-core-ui:26.0.1@aar
| | +--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-compat:26.0.1@aar
| | \--- com.Android.support:support-annotations:26.0.1@jar
| +--- com.Android.support:cardview-v7:26.0.1@aar
| | \--- com.Android.support:support-annotations:26.0.1@jar
| +--- com.Android.support:customtabs:25.3.1@aar
| | +--- com.Android.support:support-compat:26.0.1@aar
| | | \--- com.Android.support:support-annotations:26.0.1@jar
| | \--- com.Android.support:support-annotations:26.0.1@jar
| +--- com.parse.bolts:bolts-Android:1.4.0@jar
| | +--- com.parse.bolts:bolts-tasks:1.4.0@jar
| | \--- com.parse.bolts:bolts-applinks:1.4.0@jar
| | \--- com.parse.bolts:bolts-tasks:1.4.0@jar
| \--- com.google.zxing:core:3.3.0@jar
Je souhaite utiliser la dernière bibliothèque compatible avec l'application car je souhaite prendre en charge Oreo. Quelqu'un peut-il me guider à ce sujet? De plus, n'est-ce pas la faute de Facebook d'utiliser des dépendances plus anciennes pour les onglets personnalisés? Merci beaucoup pour votre temps et votre aide dans cette affaire.
Facebook SDK pour Android utilise la version de la bibliothèque de support 25.3.1 , vous devez donc l'exclure pour utiliser le support le plus récent bibliothèque. Vous pouvez essayer d'utiliser les éléments suivants:
// Facebook SDK Dependencies, need to be excluded.
// 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'
compile ('com.facebook.Android:facebook-Android-sdk:4.26.0') {
exclude group: 'com.Android.support', module: 'support-v4'
exclude group: 'com.Android.support', module: 'appcompat-v7'
exclude group: 'com.Android.support', module: 'cardview-v7'
exclude group: 'com.Android.support', module: 'customtabs'
}
Pour facebook-Android-sdk: 4.28. la liste est un peu plus longue;)
implementation 'com.Android.support:support-v4:26.1.0'
implementation 'com.Android.support:cardview-v7:26.1.0'
implementation 'com.Android.support:customtabs:26.1.0'
implementation 'com.Android.support:support-annotations:26.1.0'
implementation 'com.Android.support:support-core-utils:26.1.0'
implementation('com.facebook.Android:facebook-Android-sdk:4.28.0') {
exclude group: 'com.Android.support', module: 'support-v4'
exclude group: 'com.Android.support', module: 'appcompat-v7'
exclude group: 'com.Android.support', module: 'cardview-v7'
exclude group: 'com.Android.support', module: 'customtabs'
exclude group: 'com.Android.support', module: 'support-annotations'
exclude group: 'com.Android.support', module: 'support-core-utils'
}