Hi !
I am creating an application in Kotlin that allows people to return at home in security after a party for exemple. One option for the application is to transfer a contact by nfc between two devices.
I would like to use nfc but some functions are deprecated, so I would like to download sdk26 (android 8.0 Oreo) but I can’t.
When I try to download sdk 26 on Android studio , I have this message :
Failed packages:
- Intel x86 Atom System Image (system-images;android-26;default;x86)
- Google APIs Intel x86_64 Atom System Image (system-images;android-26;google_apis;x86_64)
- Google APIs Intel x86 Atom System Image (system-images;android-26;google_apis;x86)
- Android Wear Intel x86 Atom System Image (system-images;android-26;android-wear;x86)
- Sources for Android 26 (sources;android-26)
- Google Play Intel x86 Atom System Image (system-images;android-26;google_apis_playstore;x86)
- ARM 64 v8a System Image (system-images;android-26;default;arm64-v8a)
- Android SDK Platform 26 (platforms;android-26)
- Android TV Intel x86 Atom System Image (system-images;android-26;android-tv;x86)
! Requested actions did not complete successfully. See the IDE log for details
So I try on terminal with this command :
cd ~/Library/Android/sdk
./tools/bin/sdkmanager “platforms;android-26”
but I have this errors :
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(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:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
… 5 more
If someone have an idea , it will be great !
Thank you community !