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:
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?
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!