Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.IllegalStateException: Android platform not set for module: 	at com.android.tools.idea.run.editor.DevicePicker.createChecker(DevicePicker.java:158)	at com.android.tools.idea.run.editor.DevicePicker.(DevicePicker.java:106)	at com.android.tools.idea.run.editor.DeployTargetPickerDialog.(DeployTargetPickerDialog.java:102)	at com.android.tools.idea.run.editor.ShowChooserTargetProvider.showPrompt(ShowChooserTargetProvider.java:97)	at com.android.tools.idea.run.AndroidRunConfigurationBase.getDeployTarget(AndroidRunConfigurationBase.java:659)	at com.android.tools.idea.run.AndroidRunConfigurationBase.getState(AndroidRunConfigurationBase.java:360)	at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:158)	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:55)	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)	at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:94)	at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:114)	at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:65)	at com.intellij.execution.impl.ExecutionManagerImpl$7.run(ExecutionManagerImpl.java:503)	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)	at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:337)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)	at java.awt.EventQueue.access$400(EventQueue.java:82)	at java.awt.EventQueue$2.run(EventQueue.java:676)	at java.awt.EventQueue$2.run(EventQueue.java:674)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:866)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)