更新后启动 android studio 时出现内部错误

Internal error at starting android studio after update

我正在使用 ubuntu 20.04

我将 android Studio 更新到 4.1 版。之后我无法启动 android studio 并显示以下错误。

Internal error. Please refer to https://code.google.com/p/android/issues

java.lang.ExceptionInInitializerError
    at com.a.b.b.d.K.b(K.java:260)
    at com.a.b.b.a.am.c(am.java:297)
    at com.a.b.b.a.am.a(am.java:119)
    at com.a.b.b.a.ai.a(ai.java:56)
    at com.intellij.idea.MainImpl.start(MainImpl.java:19)
    at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
    at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
    at com.intellij.ide.plugins.MainRunner.lambda$start[=11=](MainRunner.java:47)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
    at com.intellij.ui.scale.JBUIScale.lambda$static[=11=](JBUIScale.java:76)
    at com.intellij.openapi.util.AtomicNotNullLazyValue.compute(AtomicNotNullLazyValue.java:59)
    at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:37)
    at com.intellij.ui.scale.JBUIScale.lambda$static(JBUIScale.java:155)
    at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
    at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
    at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
    at com.intellij.ui.scale.JBUIScale.lambda$static(JBUIScale.java:173)
    at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
    at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
    at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
    at com.intellij.ui.scale.JBUIScale.scale(JBUIScale.java:297)
    at com.intellij.util.ui.JBInsets.create(JBInsets.java:41)
    at com.intellij.util.ui.UIUtil.getRegularPanelInsets(UIUtil.java:1356)
    at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:455)
    ... 9 more

-----
JRE 1.8.0_242-release-1644-b3-6222593 amd64 by JetBrains s.r.o

我应该怎么做才能解决这个问题?我尝试删除插件。但是没用。

删除:

  • ~/.local/share/Google/AndroidStudio4.1,
  • ~/.config/Google/AndroidStudio4.1,
  • ~/.cache/Google/AndroidStudio4.1

帮助我再次 运行 AndroidStudio。