NovatecConsulting / fastlane-plugin-android_sdk_update

🚀 Fastlane plugin to install and update required Android-SDK packages
MIT License
10 stars 5 forks source link

Make it compatible with Java 11 #9

Closed sneps85 closed 2 years ago

sneps85 commented 2 years ago

As gradle 7.x requires Java 11, please make your plugin work with it. Currently, the following exception is thrown using Java 11:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema

samsonpaul87 commented 2 years ago

Is there any update on this issue? I am also getting this exception and waiting for an update.

m-ruhl commented 2 years ago

I don't think the issue is within the plugin itself.

The plugin uses the sdkmanager from android platform tools, and to my knowledge this tools is still only compatible with Java 8.

samsonpaul87 commented 2 years ago

Please see the screenshot attached. Looking through the logs, one can clearly see that the issue is triggering from withing the plugin itself. image

m-ruhl commented 2 years ago

Yes, but the plugin is written in Ruby and you see a Java-Stacktrace error from the sdkmanager

I currently don't see a way to fix it, because the problem is in the sdkmanager from Google.. or please correct me if you find a solution/workaround.

samsonpaul87 commented 2 years ago

Ahh okay. I got it now. Thank you @m-ruhl for correcting me. So, the problem lies in the sdkmanager and not in this fastlane plugin. I will dig more into there and see if I can figure it out.

sneps85 commented 2 years ago

yes, the problem is unfortunately part of the sdkmanager; you can close the issue, as not resolvable

andrii-ts commented 9 months ago

Any updates for that issue? I have the same issue

m-ruhl commented 9 months ago

@andrii-ts

It should be supported with the latest version 2.0.0 of the plugin and android-commandlinetools

Use android-commandlinetools instead of deprecated android-sdk To uninstall existing sdk: brew uninstall --cask android-sdk