wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.58k stars 537 forks source link

Execution failed for task ':app:checkDebugDuplicateClasses'. #534

Open swanand6300 opened 3 years ago

swanand6300 commented 3 years ago

react-native version: 0.62.1

react-native-pdf version: 6.2.0

Platform: iOS

Run this command react-native run-android

Logs:

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class com.github.barteksc.pdfviewer.AnimationManager found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.AnimationManager$XAnimation found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.AnimationManager$YAnimation found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.AnimationManager$ZoomAnimation found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.BuildConfig found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.CacheManager found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.CacheManager$PagePartComparator found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.DecodingAsyncTask found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.DragPinchManager found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PDFView found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PDFView$1 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PDFView$Configurator found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PDFView$ScrollDir found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PDFView$State found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PagesLoader found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PagesLoader$1 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PagesLoader$GridSize found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PagesLoader$Holder found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PagesLoader$RenderRange found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.PdfFile found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.RenderingHandler found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.RenderingHandler$1 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.RenderingHandler$2 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.RenderingHandler$RenderingTask found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.exception.FileNotFoundException found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.exception.PageRenderingException found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.link.DefaultLinkHandler found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.link.LinkHandler found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.Callbacks found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnDrawListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnErrorListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnLoadCompleteListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnLongPressListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnPageChangeListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnPageErrorListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnPageScrollListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnRenderListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.listener.OnTapListener found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.model.LinkTapEvent found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.model.PagePart found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle$1 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.scroll.ScrollHandle found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.AssetSource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.ByteArraySource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.DocumentSource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.FileSource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.InputStreamSource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.source.UriSource found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.ArrayUtils found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.Constants found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.Constants$Cache found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.Constants$Pinch found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.FileUtils found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.FitPolicy found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.MathUtils found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.PageSizeCalculator found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.PageSizeCalculator$1 found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.SnapEdge found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.github.barteksc.pdfviewer.util.Util found in modules jetified-AndroidPdfViewer-3.1.0-beta.3-runtime (com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3) and jetified-android-pdf-viewer-3.2.0-beta.1-runtime (com.github.barteksc:android-pdf-viewer:3.2.0-beta.1) Duplicate class com.shockwave.pdfium.BuildConfig found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfDocument found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfDocument$Bookmark found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfDocument$Link found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfDocument$Meta found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfPasswordException found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.PdfiumCore found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.util.Size found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0) Duplicate class com.shockwave.pdfium.util.SizeF found in modules jetified-PdfiumAndroid-1.0.1-runtime (com.github.TalbotGooday:PdfiumAndroid:1.0.1) and jetified-pdfium-android-1.9.0-runtime (com.github.barteksc:pdfium-android:1.9.0)

TimPionnier commented 3 years ago

Did you find anything i just ran into the same issue :( ?

PrimulaX commented 3 years ago

Same for me.

TimPionnier commented 3 years ago

I figured out i had react-native-pdf and react-native-pdf-view as dependencies, remooving one solved the issue for me.

PrimulaX commented 3 years ago

In my case I had react-native-html-to-pdf which was causing this duplicate classes issue but actually my case was quite different.

Fcguedes commented 3 years ago

Guy ! I resolve that problem like this: In app/build.gradle

android { configurations { all*.exclude module: 'android-pdf-viewer' } ... packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libjsc.so' pickFirst lib/arm64-v8a/libjsc.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } }

jaehyunjung83 commented 2 years ago

https://github.com/wonday/react-native-pdf/issues/534#issuecomment-784240256 @

this one works!

& This is just basic configuration of react-native-pdf in NPM.(https://www.npmjs.com/package/react-native-pdf)

alimuzaffar99 commented 2 years ago

Facing this issue with react-native-html-to-pdf, can someone guide me how to solve it?