didi / DoKit

一款面向泛前端产品研发全生命周期的效率平台。
Apache License 2.0
20.09k stars 3.09k forks source link

【Android】- Grade 7.4.2 提示 'com.android.build.gradle.internal.core.VariantDslInfo com.android.build.api.component.impl.ComponentImpl.getVariantDslInfo()' #1157

Open HLQ-Struggle opened 7 months ago

HLQ-Struggle commented 7 months ago

工程环境:

Android Studio:

Android Studio Jellyfish | 2023.3.1 Canary 2 Build #AI-233.13135.103.2331.11259770, built on December 29, 2023 Runtime version: 17.0.9+0-17.0.9b1087.9-11255266 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.2.1 GC: G1 Young Generation, G1 Old Generation Memory: 5120M Cores: 10 Metal Rendering is ON Registry: ide.instant.shutdown=false debugger.new.tool.window.layout=true ide.experimental.ui=true Non-Bundled Plugins: PlantUML integration (7.4.2-IJ2023.2) com.github.copilot (1.4.8.4188) com.intellij.marketplace (233.13135.116) io.github.kings1990.FastRequest (2024.1.2) zielu.gittoolbox (500.1.8+222) mobi.hsz.idea.gitignore (4.5.2) org.sonarlint.idea (10.2.1.77304)

Gradle:

Kotlin 1.8.21

使用 DoKit 版本:

def dokit_version = "3.7.1"
debugImplementation "io.github.didi.dokit:dokitx:$dokit_version"
releaseImplementation "io.github.didi.dokit:dokitx-no-op:$dokit_version"

classpath 'io.github.didi.dokit:dokitx-plugin:3.7.11'

一直提示:

FAILURE: Build failed with an exception.

m5314 commented 3 months ago

有解决方案吗?

Memode commented 3 months ago

这是来自QQ邮箱的假期自动回复邮件。   来信收到,干的漂亮,继续努力

HLQ-Struggle commented 3 months ago

有沒有問題?

目前只是接入了基础版本,插件暂时屏蔽了。我看需要修改底层有个库,八成就是自己拉下代码自己修改对应版本了。暂时没动弹 哈哈哈

HLQ-Struggle commented 3 months ago

有解决方案吗?

我昨天尝试了下,把 gradle 降低到 7.2.0,插件可以正常开启。但是我们的打包工具 gg 了,尴尬

HLQ-Struggle commented 3 months ago

有解决方案吗?

    classpath 'com.android.tools.build:gradle:7.2.2'

直接使用 7.2.2 版本,目前看来大图检测等暂无问题。