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

Plugin 'Jenkins Control Plugin' failed to initialize in Android Studio 4.1 #247

Closed
chenyanmo opened this issue Sep 18, 2020 · 8 comments
Closed
Assignees
Labels

Comments

@chenyanmo
Copy link

java.lang.UnsupportedClassVersionError: org/codinjutsu/tools/jenkins/ChangesBarProjectComponent has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
at java.lang.ClassLoader.defineClass(ClassLoader.java:636)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:380)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:376)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:340)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:259)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:205)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:113)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:288)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:194)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:157)
at com.intellij.openapi.project.ProjectLoadHelper$Companion.registerComponents(projectLoader.kt:29)
at com.intellij.openapi.project.ProjectLoadHelper.registerComponents(projectLoader.kt)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:323)
at com.intellij.platform.PlatformProjectOpenProcessorKt.convertAndLoadProject(PlatformProjectOpenProcessor.kt:404)
at com.intellij.platform.PlatformProjectOpenProcessorKt.prepareProject(PlatformProjectOpenProcessor.kt:299)
at com.intellij.platform.PlatformProjectOpenProcessorKt.access$prepareProject(PlatformProjectOpenProcessor.kt:1)
at com.intellij.platform.PlatformProjectOpenProcessor$Companion$openExistingProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(PlatformProjectOpenProcessor.kt:186)
at com.intellij.platform.PlatformProjectOpenProcessor$Companion$openExistingProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(PlatformProjectOpenProcessor.kt:57)
at com.intellij.platform.ProjectUiFrameAllocator$run$1$progressTask$1.run(ProjectFrameAllocator.kt:85)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:932)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:482)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:77)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:233)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:233)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

@MCMicS
Copy link
Owner

MCMicS commented Sep 18, 2020

thanks for report.
I will look for this. In my opinion Android studio should run with JBR 11 (Java 11 Runtime)

I saw it use Java 1.8 as default runtime. I will creat an 1.8 compatible build

Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

@MCMicS
Copy link
Owner

MCMicS commented Sep 18, 2020

grafik
In my installation the correct java version is used for class files.

@chenyanmo Which version do you have installed?
Do you install from marketplace or from zip. which zip do you use?

If you use a custom build or build yourself make sure to use Java 8 class level

@MCMicS
Copy link
Owner

MCMicS commented Sep 19, 2020

@chenyanmo I checked it again. Neither the marketplace version nor the zip in giuthub (2019.3 Build) has the wrong class version.

lease try again to install and reopen if problem still exists

@MCMicS MCMicS closed this as completed Sep 19, 2020
@MCMicS
Copy link
Owner

MCMicS commented Oct 11, 2020

Failed To load on Android Studio 4.1 RC
Android Studio 4.1 RC 3
Build #AI-201.8743.12.41.6823847, built on September 10, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

@MCMicS MCMicS reopened this Oct 11, 2020
@MCMicS MCMicS changed the title Plugin 'Jenkins Control Plugin' failed to initialize in Android Studio 4.X. Plugin 'Jenkins Control Plugin' failed to initialize in Android Studio >4.1 Oct 11, 2020
@MCMicS MCMicS self-assigned this Oct 11, 2020
@MCMicS MCMicS added the bug label Oct 11, 2020
@MCMicS
Copy link
Owner

MCMicS commented Oct 11, 2020

The newer Android stil lus JBR8 but newer Jenkins plugin is build for Java 11
Either I build an JDK8 Version or you have to configure Android Studio to run with JBR11
https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under?page=3

@MCMicS
Copy link
Owner

MCMicS commented Oct 12, 2020

Android Studio seem to bundled with JBR11. So the plugin is working on this platform

@MCMicS
Copy link
Owner

MCMicS commented Oct 12, 2020

@MCMicS MCMicS closed this as completed in e42ed94 Oct 16, 2020
@MCMicS MCMicS changed the title Plugin 'Jenkins Control Plugin' failed to initialize in Android Studio >4.1 Plugin 'Jenkins Control Plugin' failed to initialize in Android Studio 4.1 Oct 16, 2020
@MCMicS
Copy link
Owner

MCMicS commented Oct 16, 2020

released with released with 0.13.9

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

No branches or pull requests

2 participants