2014-02-13 102 views
1

我只是通過[File] - [New Project]創建新項目。我設置爲min-sdk:2.3,目標:4.0.3。我沒有改變任何選項(除了位置,應用程序名稱..),但我不能建立該項目。Android Studio新項目ExternalSystemException

在Android Studio的底部,打印出「ExternelSystemException」。我的android studio版本是0.4.3,這裏是整個錯誤信息。

Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'. 
com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'. 
    at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:185) 
    at com.android.tools.idea.gradle.invoker.GradleTasksExecutor.invokeGradleTasks(GradleTasksExecutor.java:326) 
    at com.android.tools.idea.gradle.invoker.GradleTasksExecutor.run(GradleTasksExecutor.java:189) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178) 
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:373) 
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:420) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
    at java.lang.Thread.run(Thread.java:662) 
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150) 

我認爲gradle必定存在問題。但這是我第一次嘗試使用Gradle,我不知道什麼是更好的解決方案。我應該重新安裝Android Studio嗎?或gradle 1.10是問題,所以降級它?(實際上我不知道如何)

謝謝你閱讀我的問題。

+0

http://stackoverflow.com/questions/21441204/gradle-error-in-android-studio-0-4-3可能的重複 – pyus13

回答

0

我檢查了評論的鏈接,並嘗試了很多解決方案。

之後我意識到最簡單的方法就是'重新安裝Android Studio'。確保在重新安裝之前刪除.gradle和.android文件夾。

升級Android Studio會產生很多問題。只需重新安裝它。