gpt4 book ai didi

Android Studio v1.2.0 启动错误: java. lang.NullPointerException

转载 作者:IT老高 更新时间:2023-10-28 23:01:59 54 4
gpt4 key购买 nike

Android Studio 更新到 v1.2.0 后。 启动时出现以下日志并且无法打开 Android Studio。我使用的是 Windows 7-64bit,在 Ubuntu 中也出现同样的错误

Android Issues 中也报告了此问题,但仍然没有解决办法

java.lang.RuntimeException: java.lang.NullPointerException
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:699)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
at com.android.tools.idea.welcome.AndroidVirtualDevice.<init>(AndroidVirtualDevice.java:81)
at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:89)
at com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215)
at com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97)
at com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233)
at com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75)
at com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100)
at com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:68)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173)
at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:302)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)
... 16 more

任何帮助将不胜感激。

最佳答案

Issue #170849给出了上述崩溃的原因。

  1. This happens (at least) when no sdk is installed and no remote repos that contain platforms are available.
  2. Actually it happens whenever remote sites aren't available and the first run wizard is run.

Issue #170850 找到一个临时解决方案 :

将以下代码添加到 C:\Program Files\Android\Android Studio\bin\idea.properties

disable.android.first.run=true

更新

该问题已在 Issue #170849 下得到修复.

关于Android Studio v1.2.0 启动错误: java. lang.NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30044635/

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