java–Android设备监视器无法从Android Studio或终端启动 – 不支持的major.minor版本52.0

java–Android设备监视器无法从Android Studio或终端启动 – 不支持的major.minor版本52.0,第1张

概述这是真实而频繁的痛苦.这一次是我现在的状态:>我在Mac上>安装jenv以便与多个版本的Java6到9进行保持连接>将JAVA_HOME配置为Java8>使用AndroidStudio3.0Canary5当我尝试启动Android设备监视器(从IDE或从终端中删除)时,它失败并在日志中显示以下错误消息:!SESSION2017-07-

这是真实而频繁的痛苦.这一次是我现在的状态:

>我在Mac上
>安装jenv以便与多个版本的Java 6到9进行保持连接
>将JAVA_HOME配置为Java 8
>使用Android Studio 3.0 Canary 5

当我尝试启动AndroID设备监视器(从IDE或从终端中删除)时,它失败并在日志中显示以下错误消息:

!SESSION 2017-07-01 16:43:12.457 -----------------------------------------------eclipse.buildID=unkNownjava.version=1.6.0_65java.vendor=Apple Inc.BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_USFramework arguments:  -keyring /Users/myname/.eclipse_keyring -showlocationCommand-line arguments:  -os macosx -ws cocoa -arch x86_64 -data @noDefault -keyring /Users/myname/.eclipse_keyring -showlocation    ...!ENTRY org.eclipse.osgi 4 0 2017-07-01 16:43:13.674!MESSAGE Application error!STACK 1org.eclipse.core.runtime.CoreException: Plug-in com.androID.IDe.eclipse.monitor was unable to load class com.androID.IDe.eclipse.monitor.MonitorApplication.    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOsgi.throwException(RegistryStrategyOsgi.java:194)    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOsgi.createExecutableExtension(RegistryStrategyOsgi.java:176)    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.androID.IDe.eclipse.monitor (5).    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)    at java.lang.classLoader.loadClass(ClassLoader.java:247)    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOsgi.createExecutableExtension(RegistryStrategyOsgi.java:174)    ... 15 moreCaused by: org.osgi.framework.BundleException: The activator com.androID.IDe.eclipse.monitor.MonitorPlugin for bundle com.androID.IDe.eclipse.monitor is invalID    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)    ... 27 moreCaused by: java.lang.UnsupportedClassversionError: com/androID/prefs/AndroIDLocation$AndroIDLocationException : Unsupported major.minor version 52.0    at java.lang.classLoader.defineClass1(Native Method)    at java.lang.classLoader.defineClassCond(ClassLoader.java:637)    at java.lang.classLoader.defineClass(ClassLoader.java:621)    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:632)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:614)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:568)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)    at java.lang.classLoader.loadClass(ClassLoader.java:247)    at com.androID.IDe.eclipse.monitor.MonitorPlugin.<clinit>(MonitorPlugin.java:28)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)    at java.lang.class.newInstance0(Class.java:357)    at java.lang.class.newInstance(Class.java:310)    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)    ... 33 more

你的帮助确实很感激..

解决方法:

这就是我现在正在做的解决方法.

>使用内置“AndroID Profiler”附带的Android Studio 3.0 Canary build.您可以在IDE底部的Terminal和LogCat选项卡之间看到它.
>下载MAT for anlysing heapdump.这是一个独立版本,通常与DDMS捆绑在一起.如果您想分析heapdump,请下载它.如果您使用的是Mac,请确保将其复制到Applications目录中.我试过从Downloads目录运行它是徒劳的,认为它不起作用.

总结

以上是内存溢出为你收集整理的java – Android设备监视器无法从Android Studio或终端启动 – 不支持的major.minor版本52.0全部内容,希望文章能够帮你解决java – Android设备监视器无法从Android Studio或终端启动 – 不支持的major.minor版本52.0所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1117406.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存