Android Studio 开始运行错误

/********************************************************************************
* Android Studio 开始运行错误
* 说明:
* 打开Android Studio就抛出这个错误。
*
* 2017-4-1 深圳 南山平山村 曾剑锋
*******************************************************************************/ 一、参考文档:
. Android Studio can't start after installation
http://*.com/questions/32090832/android-studio-cant-start-after-installation 二、Android Studio Error:
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:)
at com.intellij.idea.MainImpl$$$.run(MainImpl.java:)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:)
at java.awt.EventQueue.access$(EventQueue.java:)
at java.awt.EventQueue$.run(EventQueue.java:)
at java.awt.EventQueue$.run(EventQueue.java:)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:)
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:)
at com.android.tools.idea.welcome.Platform.createSubtree(Platform.java:)
at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:)
at com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:)
at com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:)
at com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:)
at com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:)
at com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:)
at com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:)
at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:)
... more 三、解决办法:
. Open the folder bin under the directory where you installed your Android Studio.
. Find the file idea.properties and open it with Notepad++, UltraEdit, or other edit tools.
. Add disable.android.first.run=true as the final line and save the file.
. Restart Android Studio.
上一篇:Java高编译低运行错误(ConcurrentHashMap.keySet)


下一篇:Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接