当前位置:   article > 正文

android studio ubuntu12.04,在Ubuntu上启动Android Studio时面临的问题12.04

ubuntu 开启android模拟器一直卡在启动界面

我在64位机器上运行Ubuntu 12.04,并且在运行由intellij支持的Android Studio时遇到此错误。我在SUN JDK 1.7(64位)上运行它。我如何解决这个问题?在Ubuntu上启动Android Studio时面临的问题12.04

堆栈跟踪:

java.lang.NullPointerException

at java.io.File.(File.java:251)

at com.android.tools.idea.startup.AndroidStudioSpecificInitializer.getSubFolders(AndroidStudioSpecificInitializer.java:302)

at com.android.tools.idea.startup.AndroidStudioSpecificInitializer.getJdkHome(AndroidStudioSpecificInitializer.java:252)

at com.android.tools.idea.startup.AndroidStudioSpecificInitializer.setupSdks(AndroidStudioSpecificInitializer.java:87)

at com.android.tools.idea.startup.AndroidStudioSpecificInitializer.run(AndroidStudioSpecificInitializer.java:62)

at com.android.tools.idea.AndroidInitialConfigurator.activateAndroidStudioInitializerExtensions(AndroidInitialConfigurator.java:115)

at com.android.tools.idea.AndroidInitialConfigurator.(AndroidInitialConfigurator.java:54)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)

at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)

at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)

at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)

at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)

at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)

at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:575)

at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:633)

at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:241)

at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:228)

at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:215)

at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)

at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:131)

at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:416)

at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)

at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:357)

at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)

at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:548)

at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:143)

at com.intellij.idea.MainImpl$1.run(MainImpl.java:87)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)

at java.awt.EventQueue.access$200(EventQueue.java:103)

at java.awt.EventQueue$3.run(EventQueue.java:688)

at java.awt.EventQueue$3.run(EventQueue.java:686)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)

at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)

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)

+0

正在使用正确的Java吗?你可以看到jvms在系统上的“$ update-alternatives --list java”。 –

+1

Intellij能够正确定位java。我把它当成了输出 –

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/909793
推荐阅读
相关标签
  

闽ICP备14008679号