Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Android Studio

From iFixWiki

Android studio is a free IDE for creating android apps. It is based off the IntelliJ IDEA IDE.

Issues[edit]

Start Failed[edit]

When trying to run Android Studio, an error message appears after the splash screen saying

Internal error. Please report to https://code.google.com/p/android/issues

java.lang.RuntimeException: java.lang.NullPointerException

at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178)

at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)

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)

Caused by: java.lang.NullPointerException

at com.android.tools.idea.welcome.AndroidVirtualDevice.<init>(AndroidVirtualDevice.java:81)

at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:89)

at com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215)

at com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97)

at com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233)

at com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75)

at com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100)

at com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92)

at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:68)

at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173)

at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:302)

at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)

Solution[1]

  1. Open the directory Android Studio is installed: ?:\Program Files\Android\Android Studio\bin (You can right click on the Android Studio shortcut and click Open file location)
  2. Open the file idea.properties
  3. Scroll to the end of the file and add the line disable.android.first.run=true
  4. Save the file and start Android Studio

References[edit]