首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >渐变7.2如何引入LeakCanary插件

渐变7.2如何引入LeakCanary插件
EN

Stack Overflow用户
提问于 2022-02-24 04:52:06
回答 1查看 57关注 0票数 0

buildscript {依赖项{类路径'com.squareup.leakcanary:leakcanary-deobfuscation-gradle-plugin:${version}‘}}

在这里输入图像描述

根项目“��д��”的评估出现了问题。

插件id 'com.squareup.leakcanary:leakcanary-deobfuscation-gradle-plugin‘无效:插件id包含无效字符“:”(只有ASCII字母数字字符、“.”、“_”和“-”字符有效)

EN

回答 1

Stack Overflow用户

发布于 2022-02-24 21:12:42

您的插件应用不正确。插件ID与工件GAV不同。

https://square.github.io/leakcanary/recipes/#using-leakcanary-with-obfuscated-apps

一个更新的例子:

settings.gradle.kts

代码语言:javascript
复制
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

代码语言:javascript
复制
plugins {
    id("com.squareup.leakcanary.deobfuscation") version "2.8.1"
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71247264

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档