当前位置: 首页 > 知识库问答 >
问题:

Gradle error Android Studio

贲培
2023-03-14
buildscript {
ext.kotlin_version = '1.1.2-5'
ext.support_lib_version = '25.3.1'
ext.junit_version = '4.12'
ext.constraint_layout_version = '1.0.2'
ext.rxjava_version = '1.1.3'
ext.rxandroid_version = '1.1.0'
ext.mpchart_version='v3.0.2'
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}}

allprojects {
repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

gradle-wrapper.properties文件:

 #Mon Jun 19 10:49:52 IST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

共有1个答案

楚建柏
2023-03-14

只需将此添加到您的项目级别分级中即可

类路径“com.android.tools.build:gradle:3.0.0-alpha4”

这是因为在应用程序级别分级文件中有implementation()方法

 类似资料:

相关问答

相关文章

相关阅读