Android Studio can't start after installation

AndroidAndroid Studio

Android Problem Overview


After installing Android Studio, it doesn't start, but it displays the following error when fetching Android SDK component information:

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

java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform.<init> must not be null
    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.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform.<init> must not be null
    at com.android.tools.idea.welcome.Platform.<init>(Platform.java)
    at com.android.tools.idea.welcome.Platform.getLatestPlatform(Platform.java:72)
    at com.android.tools.idea.welcome.Platform.createSubtree(Platform.java:89)
    at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:81)
    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)
    ... 16 more

Android Solutions


Solution 1 - Android

It occurred to me today. I think the reason is that mistakes occurred when fetching Android SDK component information. Here is my way to avoid this problem:

  1. Open the folder bin under the directory where you installed your Android Studio.
  2. Find the file idea.properties and open it with Notepad++, UltraEdit, or other edit tools.
  3. Add disable.android.first.run=true as the final line and save the file.
  4. Restart Android Studio.

Then it won't fetch any information and will be opened directly. I hope that will help you.

Solution 2 - Android

Just turn off the Internet connection.

Solution 3 - Android

Simply starting Android Studio when the Internet connection is off worked for me.

It will give a warning message that it cannot initiate the first run. Just ignore that warning, and you are done.

Solution 4 - Android

  1. Delete the two folders C:\Users\USER_NAME.android and C:\Users\USER_NAME.AndroidStudio. And delete all files in C:\Users\USER_NAME\AppData\Local\Temp

  2. Remove and re-install Android Studio, and I used the SDK that I downloaded before and saved it as backup. Then I opened Android Studio when the Internet connection was off.

The best way is, make sure you do the 1st step up here then turn off the internet then restart you computer.

Solution 5 - Android

Please press okay and restart Android Studio. It will start normally.

Solution 6 - Android

I suggest you upgrade Android Studio to the stable 1.3.1 version. From the log, it seems there is a problem with an argument which seems to be null.

Solution 7 - Android

It's a known bug found in earlier versions of Android Studio and is reported by many users.

See Issue 183063: Start Failed - parameter 'name' of com/android/tools/idea/welcome/Platform. must not be null.

The best solution for now would be downloading the latest version of Android Studio which is version 1.3.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAmal KronzView Question on Stackoverflow
Solution 1 - AndroidXun ChenlongView Answer on Stackoverflow
Solution 2 - AndroidbigminionView Answer on Stackoverflow
Solution 3 - AndroidParag KadamView Answer on Stackoverflow
Solution 4 - AndroidAmal KronzView Answer on Stackoverflow
Solution 5 - AndroidBhavana JohriView Answer on Stackoverflow
Solution 6 - AndroidstebakView Answer on Stackoverflow
Solution 7 - AndroidProkash SarkarView Answer on Stackoverflow