• android studio首次运行出错


    转载2015-10-24 16:28:15

    标签:androidstudioandroidstudio无法启androidstudio1.4无法

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

    java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNullparameter 'name' of com/android/tools/idea/welcome/Platform. 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:312)

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

    at java.awt.EventQueue.access$300(EventQueue.java:103)

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

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

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

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

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

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

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform. must not be null

    at com.android.tools.idea.welcome.Platform.(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.(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

    百度的方法:

    1)进入刚安装的Android Studio目录下的bin目录。找到idea.properties文件,用文本编辑器打开。

    2)在idea.properties文件末尾添加一行: disable.android.first.run=true ,然后保存文件。

    3)关闭Android Studio后重新启动,便可进入界面。

    进入界面新建项目时,出现SDK的错误,

     安装并配置SDK路径即可:

    之后新建项目 ,可以运行。问题解决

  • 相关阅读:
    C# 线程安全的操作控件
    C# 使用HttpListener创建简易Web服务器
    PHP mjpeg 连续图片格式生成
    XAMPP PHP开发环境安装备忘
    dnspod CURL模拟访问
    在MAC上使用Fiddler抓包手机
    解决关于docker: Error response from daemon: endpoint with name v5 already exists in network bridge.
    【电子政务】政务服务事项相关概念知识:事项办理深度 四级标准
    转:脱机环境下window 使用pycharm 连接cx_oracle 连接数据库
    转 shell if判断写成一行 和 shell中如何注释掉一段话
  • 原文地址:https://www.cnblogs.com/mengfff/p/4936025.html
Copyright © 2020-2023  润新知