tinker
tinker copied to clipboard
android接入tinker,出现奇葩的错误
root: classpath 'com.android.tools.build:gradle:3.5.4' classpath "com.tencent.bugly:tinker-support:1.2.0"
app : buildTypes { release { minifyEnabled true shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } }
gradle: distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
编译环境:macos,androidstudio4.1.2
已按照文档接入tinker,打了基准包后打补丁时永远报错: 。。。。。。cannot be mapped to 'g' 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 'g' a more specific name or add a keep rule to keep。。。。。。 试了提升或降低gradle版本,报其它的常见错误,
可以先试试 minifyEnabled false