Unable to create New Android project in IntelliJ MacOS
I'm currently using IntelliJ IDEA for MacOS. I've managed to configure IntelliJ IDEA to point to Android SDK and proceed with the creation of Android project. However when I reached at the step Configure Activity as shown in the screen shot and click Next, it does not allow me to proceed and the dialog just shakes.

Below is the exception generated in idea.log when I click the Next button:
2018-06-06 23:11:01,474 [ 92890] INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at '/Applications/prebuilts/tools/common/offline-m2'
2018-06-06 23:11:01,474 [ 92890] INFO - ugin.AndroidPluginGeneration$1 - 'gradle' plugin missing from the offline Maven repo, will use default 2.3.2
2018-06-06 23:11:01,474 [ 92890] ERROR - llij.ide.plugins.PluginManager - null
java.lang.NullPointerException
at com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep.onEntering(InstallSelectedPackagesStep.java:143)
at com.android.tools.idea.wizard.model.ModelWizard.goForward(ModelWizard.java:303)
at com.android.tools.idea.npw.ideahost.IdeaWizardAdapter.doNextAction(IdeaWizardAdapter.java:88)
at com.android.tools.idea.npw.ideahost.AndroidModuleBuilder.doNextAction(AndroidModuleBuilder.java:140)
at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.doNextAction(AbstractProjectWizard.java:260)
at com.intellij.ide.wizard.AbstractWizard$5.actionPerformed(AbstractWizard.java:199)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:786)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:723)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1077)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:694)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:426)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1688)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1637)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(DialogWrapper.java:1652)
at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:67)
at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:337)
at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:324)
at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:60)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:142)
at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:69)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:319)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:786)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:723)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2018.1.4 Build #IC-181.5087.20
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_152-release
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2018-06-06 23:11:01,475 [ 92891] ERROR - llij.ide.plugins.PluginManager - Last Action: EditorBackSpace
Please sign in to leave a comment.
Hello,
Looks like an Android plugin issue: https://stackoverflow.com/questions/42634855/unable-to-launch-new-android-studio-project. Please try to reinstall IDE.
Hi Yaroslav,
I've tried a clean uninstall and reinstall the IDE but still unable to complete creation of Android project and getting the same error message in log. I'm currently using the latest Community Edition of IntelliJ Idea, version 2018.1.4
FYI, I have no issues creating and running Android projects if I use Android Studio for MacOS. However I'm not able to create Android projects using IntelliJ Idea Community Edition for MacOS.
Please follow the related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-193437
I wanted to report that this is happening on Ubuntu Bionic with a fresh install of IntelliJ and the Android SDK plugin. Not sure if this is limited to MacOS.
Do you have Android SDK added in IDE before project creation?
I started intellij after a fresh install on a new Ubuntu install. I chose a new project and selected a Android project.
Intellij stated I needed the sdk to continue so I accepted and waited for it all to install. After the install I followed the wizard to finish creating the project and could never finish. I get the window shake and when I close the window I see the intellij messages stating the failures.
I can't get past it so I'm using the Ubuntu distribution of Android SDK for now...
I've managed to get a workaround to this issue for IntelliJ Idea MacOS. Not sure if this helps for other OS (Windows/Linux)
1. If you already have IntelliJ IDEA installed, first perform a clean uninstall and reinstall IntelliJ IDEA IDE. Before you attempt to Create New Project, first click the Configure button at the bottom right of the splash screen dialog and select Project Defaults > Project Structure
2. In the Project Settings screen, click Project and add new JDK and Android SDK by clicking on the New... button and select the path where you install your JDK and Android SDK
3. Click SDKs under Platform Settings and ensure that the SDKs for JDK and Android SDK are present. If not manually add them by clicking the + button
4. Once the steps above are done, you may create new Android project. If it works, the last step which is Configure Activity window will show a Finish button instead of Next button