Task 'compressDebugResourcesWithPngquant' not found in root project 'merchantclient'.
Please provide the following informations.
-
System version Android 10
-
Java version 1.8
-
Gradle version 6.5
-
Android Gradle plugin version 4.1.1
-
Booster version 3.3.1
-
Stack traces Initialized native services in: /Users/heyong/.gradle/native Found daemon DaemonInfo{pid=40196, address=[2ac7e6c2-c31b-4837-99d7-2cd4e74bd35f port:61312, addresses:[/127.0.0.1]], state=Idle, lastBusy=1626515028387, context=DefaultDaemonContext[uid=f9bf627d-edc7-42a2-ba77-6227c5bb6724,javaHome=/Applications/Android Studio 3.app/Contents/jre/jdk/Contents/Home,daemonRegistryDir=/Users/heyong/.gradle/daemon,pid=40196,idleTimeout=10800000,priority=NORMAL,daemonOpts=-Xmx4096m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} however its context does not match the desired criteria. Java home is different. Wanted: DefaultDaemonContext[uid=null,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home,daemonRegistryDir=/Users/heyong/.gradle/daemon,pid=40217,idleTimeout=null,priority=NORMAL,daemonOpts=-Xmx4096m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant] Actual: DefaultDaemonContext[uid=f9bf627d-edc7-42a2-ba77-6227c5bb6724,javaHome=/Applications/Android Studio 3.app/Contents/jre/jdk/Contents/Home,daemonRegistryDir=/Users/heyong/.gradle/daemon,pid=40196,idleTimeout=10800000,priority=NORMAL,daemonOpts=-Xmx4096m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
Looking for a different daemon... The client will now receive all logging from the daemon (pid: 37442). The daemon log file: /Users/heyong/.gradle/daemon/6.5/daemon-37442.out.log Starting 8th build in daemon [uptime: 1 hrs 14 mins 47.03 secs, performance: 92%, GC rate: 0.00/s, heap usage: 11% of 2.9 GB] Using 12 worker leases. Invalidating in-memory cache of /Users/heyong/Documents/CHSWorkSpace/merchantclient/.gradle/6.5/fileHashes/fileHashes.bin Starting Build Invalidating in-memory cache of /Users/heyong/Documents/CHSWorkSpace/merchantclient/.gradle/6.5/fileHashes/resourceHashesCache.bin Settings evaluated using settings file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/settings.gradle'. Projects loaded. Root project using build file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/build.gradle'. Included projects: [root project 'merchantclient', project ':app', project ':baselib', project ':NtalkerChatUI']
Configure project : Evaluating root project 'merchantclient' using build file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/build.gradle'. Invalidating in-memory cache of /Users/heyong/.gradle/caches/journal-1/file-access.bin Invalidating in-memory cache of /Users/heyong/.gradle/caches/6.5/fileHashes/fileHashes.bin Invalidating in-memory cache of /Users/heyong/.gradle/caches/6.5/fileHashes/resourceHashesCache.bin
Configure project :app Evaluating project ':app' using build file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/app/build.gradle'. Creating configuration androidTestUtil ----------CConsole offline !false---------- -> BaseLibPlugin start: MobileConfig = {"appId":"1001","appName":"mall","appProductId":"merchant"} Starting process 'command 'git''. Working directory: /Users/heyong/Documents/CHSWorkSpace/merchantclient/app Command: git rev-parse --abbrev-ref HEAD Successfully started process 'command 'git'' Starting process 'command 'git''. Working directory: /Users/heyong/Documents/CHSWorkSpace/merchantclient/app Command: git rev-parse HEAD Successfully started process 'command 'git'' Starting process 'command 'git''. Working directory: /Users/heyong/Documents/CHSWorkSpace/merchantclient/app Command: git rev-parse --short HEAD Successfully started process 'command 'git'' Starting process 'command 'system_profiler''. Working directory: /Users/heyong/Documents/CHSWorkSpace/merchantclient/app Command: system_profiler SPHardwareDataType Successfully started process 'command 'system_profiler'' useNewCruncher has been deprecated. It will be removed in a future version of the gradle plugin. New cruncher is now always enabled. WARNING: DSL element 'DexOptions.incremental' is obsolete. It will be removed in version 5.0 of the Android Gradle plugin. Parsed shrinker version: 2.1.75 Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. Configuring Java sources compilation with source level 1.8 and target level 1.8. android.ndkVersion from module build.gradle is [not set] android.ndkPath from module build.gradle is not set ndk.dir in local.properties is /Users/heyong/Library/Android/sdk/ndk-bundle Not considering ANDROID_NDK_HOME because support was removed after deprecation period. sdkFolder is /Users/heyong/Library/Android/sdk Because no explicit NDK was requested, the default version [21.1.6352462] for this Android Gradle Plugin will be used Checking whether deleting ndk.dir and setting android.ndkVersion to [21.3.6528147] would result in the same NDK C/C++ ndk.dir delete check : android.ndkVersion from module build.gradle is [21.3.6528147] C/C++ ndk.dir delete check : android.ndkPath from module build.gradle is not set C/C++ ndk.dir delete check : ndk.dir in local.properties is not set C/C++ ndk.dir delete check : Not considering ANDROID_NDK_HOME because support was removed after deprecation period. C/C++ ndk.dir delete check : sdkFolder is /Users/heyong/Library/Android/sdk C/C++ ndk.dir delete check : Deleting ndk.dir and setting android.ndkVersion to [21.3.6528147] would not result in the same NDK. WARNING: NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. If you delete ndk.dir from local.properties and set android.ndkVersion to [21.3.6528147] then NDK at /Users/heyong/Library/Android/sdk/ndk/21.3.6528147 will be used. https://developer.android.com/r/studio-ui/ndk-dir NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. If you delete ndk.dir from local.properties and set android.ndkVersion to [21.3.6528147] then NDK at /Users/heyong/Library/Android/sdk/ndk/21.3.6528147 will be used. https://developer.android.com/r/studio-ui/ndk-dir WARNING: API 'variantOutput.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variantOutput.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'ApkVariantOutput.getVersionNameOverride()' is obsolete and has been replaced with 'VariantOutput.versionName()'. It will be removed in version 5.0 of the Android Gradle plugin. Gradle Properties must be used to change Variant information. For more information, see https://d.android.com/r/tools/use-properties. To determine what is calling ApkVariantOutput.getVersionNameOverride(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'ApkVariantOutput.getVersionCodeOverride()' is obsolete and has been replaced with 'VariantOutput.versionCode()'. It will be removed in version 5.0 of the Android Gradle plugin. Gradle Properties must be used to change Variant information. For more information, see https://d.android.com/r/tools/use-properties. To determine what is calling ApkVariantOutput.getVersionCodeOverride(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getJavaCompiler()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getJavaCompiler(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variantOutput.getInstall()' is obsolete and has been replaced with 'variantOutput.getInstallProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getInstall(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getExternalNativeBuildTask()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getExternalNativeBuildTask(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getProcessJavaResources()' is obsolete and has been replaced with 'variant.getProcessJavaResourcesProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getProcessJavaResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMappingFile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getRenderscriptCompile()' is obsolete and has been replaced with 'variant.getRenderscriptCompileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getRenderscriptCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variantOutput.getUninstall()' is obsolete and has been replaced with 'variantOutput.getUninstallProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getUninstall(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getAidlCompile()' is obsolete and has been replaced with 'variant.getAidlCompileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getAidlCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getGenerateBuildConfig()' is obsolete and has been replaced with 'variant.getGenerateBuildConfigProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getGenerateBuildConfig(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see TBD. To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getPreBuild()' is obsolete and has been replaced with 'variant.getPreBuildProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getPreBuild(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. WARNING: API 'variant.getCheckManifest()' is obsolete and has been replaced with 'variant.getCheckManifestProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getCheckManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Configure project :baselib Evaluating project ':baselib' using build file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/baselib/build.gradle'. Creating configuration androidTestUtil
Configure project :NtalkerChatUI Evaluating project ':NtalkerChatUI' using build file '/Users/heyong/Documents/CHSWorkSpace/merchantclient/NtalkerChatUI/build.gradle'. Creating configuration androidTestUtil All projects evaluated. Analytics other plugin to proto: Unknown plugin type com.alipay.apollo.OptimizePlugin expected enum COM_ALIPAY_APOLLO_OPTIMIZEPLUGIN Analytics other plugin to proto: Unknown plugin type com.didiglobal.booster.gradle.BoosterPlugin expected enum COM_DIDIGLOBAL_BOOSTER_GRADLE_BOOSTERPLUGIN Analytics other plugin to proto: Unknown plugin type com.tencent.bugly.gradle.BuglyPlugin expected enum COM_TENCENT_BUGLY_GRADLE_BUGLYPLUGIN Analytics other plugin to proto: Unknown plugin type com.chs.mobile.c_console_plugin.MyPlugin expected enum COM_CHS_MOBILE_C_CONSOLE_PLUGIN_MYPLUGIN Analytics other plugin to proto: Unknown plugin type com.chs.mobile.base_lib_plugin.MyPlugin expected enum COM_CHS_MOBILE_BASE_LIB_PLUGIN_MYPLUGIN Analytics other plugin to proto: Unknown plugin type com.alipay.mpaas.easy.config.MPAARPlugin expected enum COM_ALIPAY_MPAAS_EASY_CONFIG_MPAARPLUGIN
FAILURE: Build failed with an exception.
-
What went wrong: Task 'compressDebugResourcesWithPngquant' not found in root project 'merchantclient'.
-
Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
部分build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "base.gradle"
//apply from: "time.gradle"
apply plugin: 'com.alipay.apollo.optimize'
apply plugin: 'com.didiglobal.booster'
buildscript {
ext.booster_version = '3.3.1'
repositories {
google()
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://developer.huawei.com/repo/' }
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
// æ»´æ»´
maven { url 'https://oss.sonatype.org/content/repositories/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.tencent.bugly:symtabfileuploader:2.2.1'
classpath 'com.huawei.agconnect:agcp:1.4.2.300'
classpath 'com.chs.mobile:c_console-plugin:0.2.10'
//构建脚本
classpath 'com.chs.mobile:base_lib_plugin:0.4.1'
classpath 'com.android.boost.easyconfig:easyconfig:2.4.5'
// didi booster
classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
classpath "com.didiglobal.booster:booster-task-compression-pngquant:$booster_version"
classpath "io.johnsonlee.booster:booster-pngquant-provider:2.3.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
allprojects {
repositories {
google()
maven {
url "https://www.jitpack.io"
}
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://developer.huawei.com/repo/' }
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://oss.sonatype.org/content/repositories/public' }
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}