java.lang.IllegalStateException: Android platform not set for module:

Stack Overflow | Jazzmine | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    In Android Studio I'm getting IllegalStateException: Android platform not set for module:

    Stack Overflow | 7 months ago | Jazzmine
    java.lang.IllegalStateException: Android platform not set for module:

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Android platform not set for module:

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