AGPBI: {"kind":"error","text"...

本文解决了一个特定的AGPBI错误,该错误通常发生在Android Studio集成tinker热修复时。通过更新Gradle插件版本和Gradle版本,成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

版权声明:本文为延成原创文章,转载请标明出处

问题复现

AGPBI: {“kind”:“error”,“text”:"‘int androidx.appcompat.app.AlertDialog.resolveDialogTheme(android.content.Context, int)’ cannot be mapped to ‘a’ because it is in conflict with an existing member with the same signature. This usually happens when compiling a test application against a source application and having short generic names in the test application. Try giving ‘a’ a more specific name or add a keep rule to keep ‘int androidx.appcompat.app.AlertDialog.resolveDialogTheme(android.content.Context, int)’.",“sources”:[{}],“tool”:“R8”}

android studio 集成tinker热修复时出现,经检查代码无错
在这里插入图片描述

问题解决

打开build.gradle文件,修改插件版本:

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

打开gradle-wrapper.properties文件,修改gradle版本:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

最后重新编译问题解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值