Мой вопрос прост: в android studio 3.6.1 мой существующий проект перестал работать, я попытался обновить только два файла ниже, но безрезультатно. Пожалуйста, обратите внимание, что я не разработчик, поэтому я буду очень признателен, если решение может быть дано в терминах непрофессионала.
Я получаю ниже ошибки -
Причина: org.gradle.api. internal.artifacts.ivyservice.DefaultLenientConfiguration $ ArtifactResolveException: Не удалось разрешить все артефакты для конфигурации ': classpath'.
Причина: org.gradle.internal.resolve.ModuleVersionResolveException: Не удалось разрешить com. android. tools.build:gradle:3.6.0.
Причина: org.gradle.internal.resolve.ModuleVersionResolveException: нет кэшированной версии com. android .tools.build: gradle: 3.6.0 доступно для автономный режим.
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.6.0'
defaultConfig {
applicationId "dhritiapps.tulsiramayan"
minSdkVersion 16
targetSdkVersion 28
versionCode 5
versionName "1.04"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
// implementation 'com.firebase:firebase-client-android:2.5.2'
implementation 'com.google.android.gms:play-services-ads:19.0.1'
testImplementation 'junit:junit:4.13'
}
второй файл
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}