当我同时使用以下两个库时,我在生成部分中看到一个错误
implementation 'com.github.AbedElazizShe:LightCompressor:0.5.0'
implementation 'com.github.AndroidDeveloperLB:VideoTrimmer:6'
但是如果我对这些库中的任何一个进行评论,一切都很好,我该如何解决这个问题呢?
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.coremedia.iso.AbstractBoxParser found in modulesLightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.SilenceTrackImpl found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.TextTrackImpl$Line found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.h265.H265TrackImpl found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.h265.PicTiming found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.h265.SEIMessage found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.h265.SequenceParameterSetRbsp found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
Duplicate class com.googlecode.mp4parser.authoring.tracks.h265.VideoParameterSet found in modules LightCompressor-0.5.0-runtime.jar (com.github.AbedElazizShe:LightCompressor:0.5.0) and isoparser-1.1.22.jar (com.googlecode.mp4parser:isoparser:1.1.22)
您应该使用
实现'com.github.abedelazizshe:lightcompressors:0.6.0'