我想在 Android Studio 2.0 中创建一个新项目,所以我为新项目选择了名称和位置,然后单击了下一步按钮。

之后,在Target Android Devices窗口中,我选择了一个最低限度的SDK,然后再次单击“下一步”按钮,但是new project进程将停留在一个窗口上,提示安装Requeted组件,以下代码是在Evenet Log中显示的错误: NullPointerException: null

null

java.lang.NullPointerException
    at com.android.repository.util.InstallerUtil.resolveCompleteArchiveUrl(InstallerUtil.java:194)
    at com.android.repository.impl.installer.BasicInstaller.install(BasicInstaller.java:76)
    at com.android.tools.idea.sdk.wizard.legacy.SmwOldApiDirectInstall$InstallTask.run(SmwOldApiDirectInstall.java:203)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:744)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

如何传递此错误并立即创建一个新项目?

*注意:我的SDK已满,并且其中包含所有平台

最佳答案

它不会被卡住,通常需要5到7分钟的时间,它还取决于Internet连接,因此请等待一段时间。仅在第一次启动时需要时间。

更新:在中检查最新的日志文件



文件夹以查看其下载内容。 Here is the answer

08-26 06:02