应与3.6.1 android studio一起使用的gradle版本是什么
我的问题很简单,在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可用于脱机模式应与3.6.1 android studio一起使用的gradle版本是什么,android,android-studio,gradle,Android,Android Studio,Gradle,我的问题很简单,在android studio 3.6.1中,我现有的项目已经停止工作,我尝试只更新以下两个文件,但没有用。 请注意,我不是一个开发人员,所以我会非常感激,如果解决方案可以在外行人的条款 我的错误越来越少- 原因:org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:无法解析配置的所有工件:classpath 原因:org.gradle.i
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
}
我认为这个错误是因为您的第二个文件(版本3.6.0
)中的依赖项与您的Android Studio版本(版本3.6.1
)不同
尝试将您的依赖项更改为:
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
}
classpath'com.android.tools.build:gradle:3.6.1'
我没有看到你的评论,在你留下评论之前我就在这里你为什么撒谎?我的评论显示20分钟前,你的答案是6分钟前。你是什么意思?!我早在你来之前就回答了。