2015-08-26 75 views
1

儘管設置了JAVA_HOME路徑,但我無法打開Android Studio,我已經安裝了JDK和JRE最新版本。我確保已經設置了指向JDK而不是JRE的JAVA_HOME路徑。這是我正面臨的錯誤 -無法打開Android Studio,儘管設置了JAVA_HOME

[ 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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) 
    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 ] 

請幫我解決這個問題。提前致謝。

回答

0

你需要給路徑變量,如下所示:

**ANDROID_SDK_ROOT** 

路徑作爲

**%username%\AppData\Local\Android\sdk1** 

這一定幫你!

如果這個不奏效,那麼你可以探索Android-Environment Setup

我面臨磨片,我試圖安裝在我的筆記本電腦的Cocos2D-JS的跨平臺遊戲開發了類似的問題。所以,當我必須安裝Android SDK時,我做了同樣的事情,最終我成功了。

希望它有幫助!

相關問題