Skip to content

Unable to load class 'com.android.build.gradle.internal.transforms.ProGuardTransform' #618

@Vegen

Description

@Vegen

按照文档来,新建了一个工程,在根目录下配置 build.gradle,报一下错:
build.gradle (project: SmallStudy)

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.kotlin_version = "1.4.32"
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.1.3"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'net.wequick.tools.build:gradle-small:1.5.0-beta2'

        // 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
}

apply plugin: 'net.wequick.small'

small {
    aarVersion = '1.5.0-beta2'
}

报错信息:

Unable to load class 'com.android.build.gradle.internal.transforms.ProGuardTransform'.

This is an unexpected error. Please file a bug containing the idea.log file.

请问这怎样解决,第一步就报错了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions