按照Android开发者网站指导具体安装在Ubuntu 11.10下,执行studio.sh后,遇到下列问题,求解!
~/Android_studio/android-studio/bin$ sh studio.sh Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
[ 2416] WARN - plication.impl.ApplicationImpl -
java.lang.NullPointerException
at java.io.File.<init>(File.java:222)
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.<init>(AndroidInitialConfigurator.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
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:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
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:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Android
最新
开发工具
Android Studio
--------------------编程问答--------------------
lz真潮啊,
刚发布就试了
帮顶
--------------------编程问答--------------------
预览版,还不敢用,嘿嘿
--------------------编程问答--------------------
安装下openjava jdk就好了
--------------------编程问答--------------------
win8可以用啊,感觉还行吧
--------------------编程问答--------------------
WinXp sp3 安装成功,感觉有点慢
--------------------编程问答--------------------
刚安装试了下,感觉一般啊,挺难用的,等待正式版发布
--------------------编程问答--------------------
我的xp安装没有运行成功
--------------------编程问答--------------------
我的XP跑起来没任何问题
--------------------编程问答--------------------