我想在 Android Studio 2.0 中创建一个新项目,因此我选择了新项目的名称和位置,然后点击了 Next 按钮。
之后,在Target Android Devices
窗口中,我选择了一个minumum SDK,然后再次点击 Next 按钮,但new project
进程将停留在窗口是安装Requeted Components 以及代码下面的错误,显示在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已满,我有其中的每个平台
答案 0 :(得分:0)
它没有卡住,通常需要一些时间5-7分钟,这也取决于互联网连接,所以等待一段时间。首次发布只需要一段时间。
更新:检查
中的最新日志文件C:\用户\ .gradle \守护程序\ x.y格式
文件夹,查看它的下载内容。Here is the answer
答案 1 :(得分:0)
我已通过安装捆绑版本来解决此问题。