تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ 7Learn Student
ارور gradle و Failed to find Build Tools
میلاد عزیززاده حل شده توسط میلاد عزیززاده

وقتی برنامه رو ران میکنم ارور

Failed to find Build Tools revision 30.0.2

رو نشون میده و اینکه نسخه بیلد اس دی کا 30.0.3 هست نه 30.0.2

و داخل گردل دات اپ هم خط buildToolsVersion رو پیدا نمیکنم که تغییرش بدم:

 

plugins {
    id 'com.android.application'
}
android {
    compileSdk 30
    defaultConfig {
        applicationId "com.example.myapplication"
        minSdk 17
        targetSdk 30
        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.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

سلام وقت بخیر

یک vpn دیگه رو امتحان کنید

بهترین پاسخ
میلاد عزیززاده ۱۵ مهر ۱۴۰۰، ۱۷:۱۸