Skip to content

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

Closed

Description

@henri-tremblay

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.

Activity

  1. 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[/+] on Jun 9, 2017
  2. mosabua commented on Jul 14, 2017

    @mosabua
    Member

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

  3. Hanmac commented on Apr 16, 2022

    @Hanmac

    @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?

  4. allentiak commented on Apr 16, 2022

    @allentiak

    @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?

  5. allentiak commented on May 6, 2022

    @allentiak

    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?

  6. Hanmac commented on May 6, 2022

    @Hanmac

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions