0

I have the following environment:

Eclipse v4.19.0

Android Development Tools v23.0.7 (Eclipse plugin)

JREs: 8, 7, 6, 5

When I want to deploy test Android application to emulator, I receive following error message: enter image description here

Eclipse log:

!ENTRY org.eclipse.core.resources 4 2 2021-05-14 18:40:51.825 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder

!ENTRY org.eclipse.core.resources 4 566 2021-05-14 18:40:51.826 !MESSAGE Errors occurred during the build. !SUBENTRY 1 com.android.ide.eclipse.adt 4 75 2021-05-14 18:40:51.826 !MESSAGE Errors running builder 'Android Package Builder' on project 'First'. !STACK 0 java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder

Where is the problem? Why it cannot found that class?

Ladislav
  • 320
  • 3
  • 10
  • It is trying to use a class that no longer exists in modern versions of Java. Eclipse has not been supported for Android development for a long time now. – greg-449 May 14 '21 at 17:19
  • Possible duplicate. A correct answer might be here: https://stackoverflow.com/questions/47216694/error-about-sun-misc-base64encoder-on-eclipse – Ladislav May 14 '21 at 18:36

1 Answers1

0

OK, so the solution was to install:

JRE 8

Eclipse IDE 2019-06 (v4.12.0)

Android Development Tools v23.0.7.2120684

With the above it works perfectly!

enter image description here

Ladislav
  • 320
  • 3
  • 10