2016-07-30 12 views
5

Androidスタジオを開くときにこのエラーが発生しました。Android Studioのコンフィグレーション ':classpath'の依存関係をすべて解決できませんでした

これまでにこのエラーが発生したことはありません。私は、私は、SDK Managerですべてのパッケージを更新した私は私のAndroidのメーカーに再起動しました

は、

私は管理者として実行してきました

Iをクリーニングし、再同期gradleを試してみましたまた、新しいプロジェクトを構築しようとしましたが、このエラーは消えません。

この問題を解決するのを手伝ってください。

Error:Failed to create parent directory 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4' when creating directory 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401'

[UPDATE]

私は自分のプロジェクトを再構築しようとした後、私はこのような新しいエラーを得ました。そのGradleのキャッシュディレクトリ以来

Error:A problem occurred configuring root project 'BPSGoSurvey'. 
 
> Could not resolve all dependencies for configuration ':classpath'. 
 
    > Could not resolve commons-logging:commons-logging:1.1.1. 
 
    Required by: 
 
     :BPSGoSurvey:unspecified > com.android.tools.build:gradle:1.3.0 > com.android.tools.build:gradle-core:1.3.0 > com.android.tools.build:builder:1.3.0 > com.android.tools:sdklib:24.3.0 > org.apache.httpcomponents:httpclient:4.1.1 
 
     :BPSGoSurvey:unspecified > com.android.tools.build:gradle:1.3.0 > com.android.tools.build:gradle-core:1.3.0 > com.android.tools.build:builder:1.3.0 > com.android.tools:sdklib:24.3.0 > org.apache.httpcomponents:httpmime:4.1 
 
     > Could not resolve commons-logging:commons-logging:1.1.1. 
 
     > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom 
 
      > Could not resolve org.apache.commons:commons-parent:5. 
 
       > Could not resolve org.apache.commons:commons-parent:5. 
 
        > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/org/apache/commons/commons-parent/5/commons-parent-5.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download8245895784892794258bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
       > Could not resolve org.apache.commons:commons-parent:5. 
 
        > Could not parse POM https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download3502880229047415896bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
     > Could not resolve commons-logging:commons-logging:1.1.1. 
 
     > Could not parse POM https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom 
 
      > Could not resolve org.apache.commons:commons-parent:5. 
 
       > Could not resolve org.apache.commons:commons-parent:5. 
 
        > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/org/apache/commons/commons-parent/5/commons-parent-5.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download6416635460030578050bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
       > Could not resolve org.apache.commons:commons-parent:5. 
 
        > Could not parse POM https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download916061549622655000bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
    > Could not resolve commons-codec:commons-codec:1.4. 
 
    Required by: 
 
     :BPSGoSurvey:unspecified > com.android.tools.build:gradle:1.3.0 > com.android.tools.build:gradle-core:1.3.0 > com.android.tools.build:builder:1.3.0 > com.android.tools:sdklib:24.3.0 > org.apache.httpcomponents:httpclient:4.1.1 
 
     > Could not resolve commons-codec:commons-codec:1.4. 
 
     > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/commons-codec/commons-codec/1.4/commons-codec-1.4.pom 
 
      > Could not resolve org.apache.commons:commons-parent:11. 
 
       > Could not resolve org.apache.commons:commons-parent:11. 
 
        > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/org/apache/commons/commons-parent/11/commons-parent-11.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download8269455495978527180bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
       > Could not resolve org.apache.commons:commons-parent:11. 
 
        > Could not parse POM https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download3692548803835443828bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
     > Could not resolve commons-codec:commons-codec:1.4. 
 
     > Could not parse POM https://jcenter.bintray.com/commons-codec/commons-codec/1.4/commons-codec-1.4.pom 
 
      > Could not resolve org.apache.commons:commons-parent:11. 
 
       > Could not resolve org.apache.commons:commons-parent:11. 
 
        > Could not parse POM file:/E:/Android%20Studio/gradle/m2repository/org/apache/commons/commons-parent/11/commons-parent-11.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download5076305514553905674bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom' 
 
       > Could not resolve org.apache.commons:commons-parent:11. 
 
        > Could not parse POM https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom 
 
        > Could not resolve org.apache:apache:4. 
 
         > Could not resolve org.apache:apache:4. 
 
          > Could not get resource 'https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom'. 
 
           > Failed to move file 'C:\Users\User\AppData\Local\Temp\gradle_download1507005468069947828bin' into filestore at 'C:\Users\User\.gradle\caches\modules-2\files-2.1\org.apache\apache\4\602b647986c1d24301bc3d70e5923696bc7f1401\apache-4.pom'

+0

これを削除すると、gradleはreposから取得したファイルを一時的に保存し、 'build.gradle'ファイルに何も入っていないことを再確認します。 – Bill

+0

@quidproquo提案しましたが動作しませんでした –

答えて

0

、強制的にそれ(またはその親ディレクトリ)を削除してみてください。他のプロセスでは、Studioにアクセスできないディレクトリをロックしている可能性があります。削除後、Android Studio(adb、studio.exe、java.exeなど)に関連するすべてのプロセスを閉じます。次にStudioを再起動してみてください。

+0

キャッシュディレクトリを既に削除しましたが、まだ動作しませんでした:( –

+0

'/ .gradle /'ディレクトリを削除しようとしましたか? – Shaishav

+0

gradleディレクトリを削除できませんそれはディレクトリが空でないためです –

関連する問題