2016-07-30 7 views
5

पर कॉन्फ़िगरेशन ': classpath' के लिए सभी निर्भरताओं को हल नहीं कर सका, एंड्रॉइड स्टूडियो खोलते समय मुझे यह त्रुटि मिली।एंड्रॉइड स्टूडियो

मुझे पहले कभी यह त्रुटि नहीं मिली है। मैं सफाई और पुनः सिंक्रनाइज़ gradle की कोशिश की है, मैं एसडीके प्रबंधक में सभी संकुल को नवीनीकृत किया है,

मैं अपने Android स्टूडियो पुन: प्रारंभ किए,

मैं इसे व्यवस्थापक के रूप में चलाने के बाद,

मैं एक नई परियोजना बनाने की भी कोशिश की है, लेकिन यह त्रुटि दूर नहीं जाएगी।

कृपया इस समस्या को हल करने में मेरी मदद करें।

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'

[अद्यतन]

के बाद मैं अपने प्रोजेक्ट के पुनर्निर्माण की कोशिश की है, मैं एक नया त्रुटि इस तरह मिल गया।

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

मॉड्यूल-2 फ़ोल्डर को हटाने का प्रयास करें, यह वह जगह है जहां ग्रेडल अस्थायी रूप से उन फ़ाइलों को सहेजता है जो इसे रिपोज़ से पकड़ते हैं, और दोहरी जांच करें कि आपके पास 'build.gradle' फ़ाइल – Bill

+0

@quidproquo में कुछ भी नहीं है, मैंने आपकी कोशिश की है सुझाव, लेकिन यह –

उत्तर

0

इसकी एक Gradle कैश निर्देशिका के बाद से, यह (या इसके मूल निर्देशिका) जबरदस्ती हटाकर देखें। कुछ अन्य प्रक्रिया ने उस निर्देशिका को लॉक कर दिया हो सकता है जो स्टूडियो को इसे एक्सेस करने की इजाजत नहीं देता है। हटाने के बाद, एंड्रॉइड स्टूडियो (adb, studio.exe, java.exe, आदि) से जुड़े सभी प्रक्रियाओं को बंद करें। फिर स्टूडियो को पुनरारंभ करने का प्रयास करें।

+0

काम नहीं किया है मैंने पहले से ही कैश निर्देशिका हटा दी है, लेकिन यह अभी भी काम नहीं कर रहा है :( –

+0

क्या आपने '/ .gradle /' निर्देशिका को हटाने का भी प्रयास किया था? – Shaishav

+0

मैं ग्रेड निर्देशिका को हटा नहीं सकता, यह कहता है ऐसा इसलिए है क्योंकि निर्देशिका खाली नहीं है –

संबंधित मुद्दे