didi / DroidAssist

A lightweight Android Studio gradle plugin based on Javassist for editing bytecode in Android.
Apache License 2.0
890 stars 150 forks source link

集成LeakCanary报defined multiple times #33

Closed ghost closed 2 years ago

ghost commented 3 years ago

下面是配置文件

void android.view.View.setOnClickListener(android.view.View$OnClickListener) org.example.datacoll.ListenerUtil.setOnClickListener($0,$1); * org.example.datacoll.ListenerUtil

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.6'

编译时报下面的错误 /Users/liyuanbiao/projects/DataColl/app/build/intermediates/transforms/droidAssist/debug/30.jar: D8: Type leakcanary.internal.activity.screen.HprofExplorerScreen$createView$$inlined$apply$lambda$1$1 is defined multiple times: /Users/liyuanbiao/projects/DataColl/app/build/intermediates/transforms/droidAssist/debug/30.jar:leakcanary/internal/activity/screen/HprofExplorerScreen$createView$$inlined$apply$lambda$1$1.class, /Users/liyuanbiao/projects/DataColl/app/build/intermediates/transforms/droidAssist/debug/30.jar:leakcanary/internal/activity/screen/HprofExplorerScreen$createView$$inlined$apply$lambda$1$1.class org.gradle.workers.WorkerExecutionException: There was a failure while executing work items