Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of sun.misc.BASE64Encoder prevents the plugin to run on Java 9 #759

Closed
henri-tremblay opened this issue Jun 9, 2017 · 7 comments
Closed

Comments

@henri-tremblay
Copy link

henri-tremblay commented Jun 9, 2017

We get the following error (on plugin version 4.4.3)

A required class was missing while executing com.simpligility.maven.plugins:android-maven-plugin:4.4.3:apk: sun/misc/BASE64Encoder

After digging a bit, it is coming from sdklib (ApkBuilder->SignedJarBuilder). I also tried against your current master and had the same issue.

@henri-tremblay henri-tremblay changed the title Use of sun.misc.BASE64Encoder prevents the plugin to run on Java 9 Use of sun.misc.BASE64Encoder prevents the plugin to run on Java 9 Jun 9, 2017
@henri-tremblay henri-tremblay reopened this Jun 9, 2017
@henri-tremblay
Copy link
Author

I also reported an Android bug: https://issuetracker.google.com/issues/62471410

@mosabua
Copy link
Member

mosabua commented Jul 14, 2017

Until the Android SDK itself supports Java 9 we wont be able to do anything anyway. Please reopen when that happens.

@Hanmac
Copy link

Hanmac commented Apr 16, 2022

@mosabua the google issue says

SignedJarBuilder is deprecated (has been for a long time: 2013). You need to move away from it.
So is there an alternative?

@henri-tremblay you said:

Right now, android-maven-plugin 4.5.0 isn't failing on this error anymore. So I will consider this solved.

But #792 shows that this is still the case?

@allentiak
Copy link

@mosabua said:

Until the Android SDK itself supports Java 9 we wont be able to do anything anyway. Please reopen when that happens.

Maybe now is the time to reopen this?

@allentiak
Copy link

allentiak commented May 6, 2022

Hannac said:

I did a bit of digging
[...]

@Hanmac I'm a little bit lost here...
Would you be so kind to elaborate on the implications of this comment, please?

@Hanmac
Copy link

Hanmac commented May 6, 2022

they said that the old SignedJarBuilder was deprecated

i tried to found what the alternative would be.

i only found this: https://github.com/pixnet/android-platform-tools-base/blob/master/sdklib/src/main/java/com/android/sdklib/internal/build/SignedJarBuilder.java
probably a fork on github, saying Use Android-Builder instead

so i was locking for AndroidBuilder, but the only sources i found where still using some kind of SignedJarBuilder.
but i checked the code of them on the linked tools pages so see that they were updated some time in the past.

now i'm looking at what package of sdklib would have that update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants