Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swanand6300 opened this issue Jan 18, 2021 · 7 comments
Open

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

swanand6300 opened this issue Jan 18, 2021 · 7 comments

Comments

@swanand6300
Copy link

swanand6300 commented Jan 18, 2021

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
Copy link

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

@PrimulaX
Copy link

Same for me.

@TimPionnier
Copy link

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

@PrimulaX
Copy link

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
Copy link

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
Copy link

#534 (comment) @

this one works!

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

@alimuzaffar99
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants