Je reçois cette erreur dans jitpack, j'ai tout essayé sur Internet. Voici mon erreur
Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;Android-26 Android SDK Platform 26
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Et quand je lance ./sdkmanager --licenses
All SDK package licenses accepted.======] 100% Computing updates...
L'utilisation de Sudo avec la commande ci-dessus donne
Exception in thread "main" Java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.Android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.Java:156)
at com.Android.repository.api.SchemaModule.<init>(SchemaModule.Java:75)
at com.Android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.Java:81)
at com.Android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.Java:73)
at com.Android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.Java:48)
Caused by: Java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at Java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.Java:582)
at Java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.Java:190)
at Java.base/Java.lang.ClassLoader.loadClass(ClassLoader.Java:499)
... 5 more
journal d'erreurs supplémentaire
File /opt/Android-sdk-linux/.Android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 28.0.3 in /opt/Android-sdk-linux/licenses
Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Checking the license for package Android SDK Platform 26 in /opt/Android-sdk-linux/licenses
Warning: License for package Android SDK Platform 26 not accepted.
Je ne sais pas pourquoi il vérifie les licences là-bas lorsque mon emplacement sdk est autre
Je viens de faire Fichier -> Invalider les caches et redémarrer Ensuite, installez les paquets manquants. A travaillé pour moi.
Vous pouvez trouver la résolution ici: https://www.freakyjolly.com/resolved-failed-to-install-the-following-Android-sdk-packages-as-some-licences-have-not-been -accepté /
flutter doctor --Android-licenses
export Java_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home
yes | ~/Library/Android/sdk/tools/bin/sdkmanager --licenses