我的Android Studio是1.5.1
。
在AVD管理器中,点击Create Virtual Device
并获得NullPointerException
。
null
java.lang.NullPointerException
at com.android.tools.idea.avdmanager.DeviceDefinitionList.setDefaultDevices(DeviceDefinitionList.java:153)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:97)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.$$$setupUI$$$(ChooseDeviceDefinitionStep.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.<init>(ChooseDeviceDefinitionStep.java:42)
at com.android.tools.idea.avdmanager.AvdConfigurationPath.init(AvdConfigurationPath.java:34)
at com.android.tools.idea.wizard.dynamic.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:98)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.addPath(DynamicWizard.java:242)
at com.android.tools.idea.avdmanager.AvdEditWizard.init(AvdEditWizard.java:84)
at com.android.tools.idea.avdmanager.CreateAvdAction.actionPerformed(CreateAvdAction.java:40)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:565)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
我删除了/User/.android
文件夹并重新安装了Android Studio,但仍然相同。
这是我关于SDK的设置。
我还尝试了无效缓存/重新启动。
* UPDATE
如果我启动SDK Manager 独立并转到菜单:工具&gt;管理AVD。我成功地在那里创建和启动设备。
现在这个错误不断涌现。请注意,我没有安装关于“穿”的东西..
答案 0 :(得分:0)
在sdk工具下载“Intel x86 Emulator Accelerator(HAXM安装程序)”6.0.1版,你必须下载它。
然后
转到sdk位置“... \ sdk \ extras \ intel \ Hardware_Accelerated_Execution_Manager”并安装“intelhaxm-android.exe”
你应该安装使用avd
加
在sdk平台下载“Intel x86 Atom system Image”
如果你需要磨损模拟器,你必须下载穿sdk
请下载“android穿Intel x86 Atom系统图像”
答案 1 :(得分:-3)
一个建议:尝试使用Genymotion。 更好(从所有观点来看)然后是AVD。 官方网站:https://www.genymotion.com/#!/