Error:(15, 0) Gradle DSL method not found: ‘runProguard()’ Possible causes:
- The project ‘HackerTool’ may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
- The build file may be missing a Gradle plugin. Apply Gradle plugin
-修改 runProguard 为 minifyEnabled 即可
Previous code :
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’
}
}
Current code :
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’
}
}
时间: 2024-10-06 19:58:56