gpt4 book ai didi

android - 无法在 Linux 中启动 Android Studio

转载 作者:太空狗 更新时间:2023-10-29 12:26:24 25 4
gpt4 key购买 nike

在 Opensuse 中全新安装 Android Studio 不工作。JDK 已经安装。这是在终端中打开时抛出的异常。

        Start Failed: Internal Error. Please report to https://https://code.google.com/p/android/issues

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(libgcj.so.14)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
at com.intellij.idea.Main.main(Main.java:103)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.containers.LockFreeCopyOnWriteArrayList.<clinit>(LockFreeCopyOnWriteArrayList.java:54)
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.containers.ContainerUtil.createConcurrentList(ContainerUtil.java:2550)
at com.intellij.util.containers.ContainerUtil.createLockFreeCopyOnWriteList(ContainerUtil.java:2425)
at com.intellij.openapi.util.registry.RegistryValue.<init>(RegistryValue.java:36)
at com.intellij.openapi.util.registry.Registry.get(Registry.java:48)
at com.intellij.openapi.util.registry.Registry.is(Registry.java:55)
at com.intellij.util.ui.UIUtil.blockATKWrapper(UIUtil.java:108)
at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:95)
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.ide.plugins.PluginManager.start(PluginManager.java:71)
at java.lang.reflect.Method.invoke(libgcj.so.14)
...2 more
Caused by: java.lang.RuntimeException: Could not find 'theUnsafe' field in the class sun.misc.Unsafe
at com.intellij.util.concurrency.AtomicFieldUpdater.getUnsafe(AtomicFieldUpdater.java:44)
at com.intellij.util.concurrency.AtomicFieldUpdater.<clinit>(AtomicFieldUpdater.java:38)
at java.lang.Class.initializeClass(libgcj.so.14)
...14 more


Also, an UI exception occurred on attempt to show above message:
java.lang.NoClassDefFoundError: javax.swing.UIManager
at java.lang.Class.initializeClass(libgcj.so.14)
at javax.swing.UIManager.getUI(libgcj.so.14)
at javax.swing.text.JTextComponent.updateUI(libgcj.so.14)
at javax.swing.text.JTextComponent.<init>(libgcj.so.14)
at javax.swing.JEditorPane.<init>(libgcj.so.14)
at javax.swing.JTextPane.<init>(libgcj.so.14)
at com.intellij.idea.Main.showMessage(Main.java:336)
at com.intellij.idea.Main.showMessage(Main.java:312)
at com.intellij.idea.Main.showMessage(Main.java:291)
at com.intellij.idea.Main.main(Main.java:106)

我正在使用随 opensuse leap 一起提供的 Open JDK 8。

最佳答案

检查 JDK 版本。

我强烈建议从以下位置安装适用于 Linux 的 Oracle 8 JDK: https://en.opensuse.org/SDB:Installing_Java#Procedure_with_development_kit_included_.28JDK.29

它应该可以工作。

关于android - 无法在 Linux 中启动 Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39181240/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com