![](/img/trans.png)
[英]Can't Launch Android Studio Arctic Fox 2020.3.1.26 on Windows
[英]Android Studio Arctic Fox 2 cannot launch on Linux
Android Studio Arctic Fox 2 無法在 Linux 上啟動。 這是從終端運行時的錯誤:
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
Also, a UI exception occurred on an attempt to show the above message:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-1"
2020-12-07 01:01:59,866 [ 17998] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:01:59,866 [ 17998] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:01:59,866 [ 17998] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:01:59,867 [ 17999] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:00,211 [ 18343] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:00,212 [ 18344] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:00,296 [ 18428] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:00,296 [ 18428] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:00,297 [ 18429] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:00,297 [ 18429] ERROR - llij.ide.plugins.PluginManager - OS: Linux
2020-12-07 01:02:00,297 [ 18429] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre2020-12-07 01:02:00,297 [ 18429] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-1"
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:00,948 [ 19080] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:00,948 [ 19080] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:00,948 [ 19080] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:00,948 [ 19080] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:01,271 [ 19403] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:01,271 [ 19403] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:01,271 [ 19403] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:01,369 [ 19501] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre2020-12-07 01:02:01,369 [ 19501] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:01,370 [ 19502] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:01,370 [ 19502] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:01,370 [ 19502] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
Also, a UI exception occurred on an attempt to show the above message:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-1"
2020-12-07 01:02:02,031 [ 20163] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:02,031 [ 20163] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:02,031 [ 20163] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:02,031 [ 20163] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:02,372 [ 20504] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:02,372 [ 20504] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:02,372 [ 20504] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:02,372 [ 20504] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre2020-12-07 01:02:02,459 [ 20591] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:02,459 [ 20591] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:02,459 [ 20591] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:02,460 [ 20592] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-1"
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:03,110 [ 21242] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:03,110 [ 21242] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:03,110 [ 21242] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:03,110 [ 21242] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
2020-12-07 01:02:03,465 [ 21597] ERROR - llij.ide.plugins.PluginManager - Metaspace
java.lang.OutOfMemoryError: Metaspace
2020-12-07 01:02:03,465 [ 21597] ERROR - llij.ide.plugins.PluginManager - Android Studio Arctic Fox | 2020.3.1 Canary 2 Build #AI-202.7319.50.2031.7006259
2020-12-07 01:02:03,465 [ 21597] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2020-12-07 01:02:03,465 [ 21597] ERROR - llij.ide.plugins.PluginManager - OS: Linux
Start Failed: Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.OutOfMemoryError: Metaspace
-----
JRE 11.0.8+0-b944-P17168821 amd64 by N/A
/home/johndoe/.local/android-studio-preview/android-studio/jre
Also, a UI exception occurred on an attempt to show the above message:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-1"
./studio.sh: line 195: 12635 Killed "$JAVA_BIN" -classpath "$CLASSPATH" ${VM_OPTIONS} "-XX:ErrorFile=$HOME/java_error_in_STUDIO_%p.log" "-XX:HeapDumpPath=$HOME/java_error_in_STUDIO.hprof" -Didea.paths.selector=AndroidStudioPreview2020.3 "-Djb.vmOptionsFile=$VM_OPTIONS_FILES" ${IDE_PROPERTIES_PROPERTY} -Didea.platform.prefix=AndroidStudio -Didea.jre.check=true com.intellij.idea.Main "$@"
我嘗試按如下方式更改 studio.vmoptions,但沒有幫助(值得一提的是,它在全新安裝后失敗):
-server
-Xms128m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-XX:+UseCompressedOops
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-Djna.nosys=true
-Djna.boot.library.path=
-Didea.vendor.name=Google
-XX:MaxJavaStackTraceDepth=10000
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
-Dsun.tools.attach.tmp.only=true
-XX:MaxHeapFreeRatio=70
操作系統信息:
英特爾上的 Fedora 32
根據這篇關於 Android Studio 已知問題的帖子,升級后可能會發生這種情況。 解決方案是刪除以前 Android Studio 版本的配置。 在 Linux 上,這些目錄位於 ~/.config/Google/AndroidStudioXX,其中 XX 代表版本。 如果有多個,您可以將它們全部刪除,然后再次運行 Android Studio。 這可能會解決問題中提到的任何錯誤配置問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.