版权声明:本文为延成原创文章,转载请标明出处
问题复现
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
最后重新编译问题解决。