این خطا اندروید استودیو رو چطور باید رفع کنم

سوال
  • org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
در حال بررسی 0
, 2022-08-08T12:17:53+03:30 3 پاسخ کاربر تازه 0

پاسخ ها ( 3 )

    0
    2022-08-09T12:55:49+03:30

    سلام

    کدهای فایل build.gradle رو بزارید

      0
      2022-08-18T22:16:11+03:30
      plugins {
          id 'com.android.application'
      }
      
      android {
          compileSdk 32
      
          defaultConfig {
              applicationId "com.example.digy"
              minSdk 21
              targetSdk 32
              versionCode 1
              versionName "1.0"
      
              testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
          }
      
          buildTypes {
              release {
                  minifyEnabled false
                  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
              }
          }
          compileOptions {
              sourceCompatibility JavaVersion.VERSION_1_8
              targetCompatibility JavaVersion.VERSION_1_8
          }
      }
      
      dependencies {
      
          implementation 'androidx.appcompat:appcompat:1.4.2'
          implementation 'com.google.android.material:material:1.6.1'
          implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
          testImplementation 'junit:junit:4.13.2'
          androidTestImplementation 'androidx.test.ext:junit:1.1.3'
          androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
          implementation 'android.support:design:23.3.0'
          implementation 'android.support:appcompat-v7:23.3.0'
          implementation 'android.support:cardview-v7:23.3.0'
          implementation 'android.support:recyclerview:v7:23.3.0'
          implementation "com.android.support:support-v4:+"
          implementation 'com.squareup.picasso:picasso:2.3.2'
          implementation 'com.nineoldandroids:library:2.4.0'
          implementation 'com.daimajia.slider:library:1.1.5@aar'
      }
    0
    2022-08-21T21:49:41+03:30

    کدهای گریدل مشکلی ندارند …

    اندروید استودیو رو اجرا کنید، سمت راست روی گزینه gradel کلیک کنید و اونو به حالت آنلاین در بیارید

    اگر افلاین هست به حالت آنلاین در بیارید و تست کنید، بعد فیلترشکن رو روشن کنید و پروژه رو Rebuild کنید.

    اگه نتیجه ای نگرفتید همینجا اعلام کنید، اگه خطای جدیدی هم دریافت کردید همینجا اعلام کنید

    موفق باشید.

    • متاسفیم ، این پاسخ خصوصی است.

    0
    2023-08-04T20:28:23+03:30

    میخوام از کتابخانه Glide استفاده کنم ولی همش ارور میده

    Error : org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:app:debugRuntimeClasspath

     

    Code:

     

    plugins {
        id 'com.android.application'
    }
    
    android {
        namespace 'com.plr.myapplication'
        compileSdk 33
    
        defaultConfig {
            applicationId "com.plr.myapplication"
            minSdk 24
            targetSdk 34
            versionCode 1
            versionName "1.0"
    
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
    
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    
    dependencies {
    
        implementation 'androidx.appcompat:appcompat:1.6.1'
        implementation 'com.google.android.material:material:1.9.0'
        implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
        testImplementation 'junit:junit:4.13.2'
        androidTestImplementation 'androidx.test.ext:junit:1.1.5'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
        implementation 'com.github.bumptech.glide:glide:4.15.1'
    }

ارسال یک پاسخ