LeakCanary设置问题
我正在尝试通过https://github.com/square/leakcanary进行设置。
在gradle中,我更新了 debugImplementation'com.squareup.leakcanary:leakcanary-android:2.0-alpha-2'
但出现错误 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的android.support.v4.app.INotificationSideChannel类 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的类android.support.v4.app.INotificationSideChannel $ Stub 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的android.support.v4.app.INotificationSideChannel $ Stub $ Proxy类) 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的类android.support.v4.graphics.drawable.IconCompatParcelizer 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的类android.support.v4.os.IResultReceiver 在模块classes.jar(androidx.core:core:1.0.1)和classes.jar(com.android.support:support-compat:28.0.0)中找到重复的类android.support.v4.os.IResultReceiver $ Stub < / p>
每个stackoverflow Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?
更新了gradle.properties,但现在出现错误,其中没有与Android相关的内容正在编译
org.gradle.execution.MultipleBuildFailures:构建完成,但有1个失败。 在org.gradle.initialization.DefaultGradleLauncher $ ExecuteTasks.run(DefaultGradleLauncher.java:386) 在org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)处 在org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)上
答案 0 :(得分:0)
这是Beta版中已解决的已知问题,您应该进行更新。