buildscript {依赖项{类路径'com.squareup.leakcanary:leakcanary-deobfuscation-gradle-plugin:${version}‘}}
根项目“��д��”的评估出现了问题。
插件id 'com.squareup.leakcanary:leakcanary-deobfuscation-gradle-plugin‘无效:插件id包含无效字符“:”(只有ASCII字母数字字符、“.”、“_”和“-”字符有效)
发布于 2022-02-24 21:12:42
您的插件应用不正确。插件ID与工件GAV不同。
https://square.github.io/leakcanary/recipes/#using-leakcanary-with-obfuscated-apps
一个更新的例子:
settings.gradle.kts
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
resolutionStrategy.eachPlugin {
if (requested.id.id == "com.squareup.leakcanary.deobfuscation") {
useModule("com.squareup.leakcanary:leakcanary-deobfuscation-gradle-plugin:${requested.version}")
}
}
}build.gradle.kts
plugins {
id("com.squareup.leakcanary.deobfuscation") version "2.8.1"
}https://stackoverflow.com/questions/71247264
复制相似问题