Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vegen opened this issue Nov 17, 2021 · 0 comments

Comments

@Vegen
Copy link

Vegen commented Nov 17, 2021

按照文档来,新建了一个工程,在根目录下配置 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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant