lubritto / pdf_viewer_plugin

A Flutter plugin for IOS and Android providing a simple way to display PDFs.
MIT License
57 stars 65 forks source link

App crash on finale release #10

Open ShrJamal opened 5 years ago

ShrJamal commented 5 years ago

The PDF Viewer works well on debug and release mode, but after building the apk and install it, the app crash when trying to open a pdf. Any idea why?

pboethig commented 5 years ago

I can confirm. Whats the state about this issue?

ShrJamal commented 5 years ago

The problem is with the android_pdf library used "'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1''. I downgrade the dependency version and works fine. check the native dependency here: https://github.com/barteksc/AndroidPdfViewer

lubritto commented 5 years ago

@SHRJamal Thanks for investigating, the downgrade resolve this issue?

ShrJamal commented 5 years ago

@lubritto Yep, It did for me

lubritto commented 5 years ago

Ok, I will test here and update the plugin to use this version. Thanks!

duongnm-1057 commented 5 years ago

@lubritto Yep, It did for me

Hi SHRJamal, Which version 'com.github.barteksc:android-pdf-viewer are you used?

ShrJamal commented 5 years ago

@duongnm-1057 I used the stable version 2.8.2, the version 3 still in beta 'com.github.barteksc:android-pdf-viewer:2.8.2'

duongnm-1057 commented 5 years ago

@duongnm-1057 I used the stable version 2.8.2, the version 3 still in beta 'com.github.barteksc:android-pdf-viewer:2.8.2'

Many thanks

MaxChal commented 5 years ago

@SHRJamal how to i specify the com.github.barteksc:android-pdf-viewer:2.8.2 dependancy?

ShrJamal commented 5 years ago

@MaxChal you need to fork this plugin and change the version in the Gradle file. else I think the plugin author @lubritto is in the process to fix the issue.

w4mxl commented 4 years ago

@lubritto please think about fix the issue, many thanks.

egidiocs commented 4 years ago

@lubritto, thanks for developing this plugin. It is crashing mine too. It works well on a J3 device Android 5.5, but crash in all newer devices. Tried the downgrade solution from SHRJamal, but it did not fix. Apk crashes on splash screen.

lujiayi1228 commented 4 years ago

the crash log: [Native crash above happened with a Java pending exception as following]

10 java.lang.ClassNotFoundException: Didn't find class "com.shockwave.pdfium.util.Size" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/*****-uBoGl_wKRm0CjsejWIaa1g==/base.apk"]

amit-onappr commented 4 years ago

Is there a permanent fix for this?

amit-onappr commented 4 years ago

Downgrading com.github.barteksc:android-pdf-viewer resolved the issue

thebrianbug commented 4 years ago

Thanks for the plugin, but this issue is causing me to use another solution until this is fixed.

raphaelsilvasage commented 4 years ago

Same issue here... =( @lubritto, my brazilian friend, could you please fix it? I thinks that if you downgrade the 'com.github.barteksc:android-pdf-viewer' dependency will work

leonardopaim commented 4 years ago

@lubritto obrigado pelo excelente package. É o meu preferido dentro os disponíveis até o momento. Sobre este problema, poderia orientar a gente como fazer a correção alternativa até que vc possa ajustar o erro?

Bendix20 commented 4 years ago

Importing the Android Project in Android Studio and build the APK with Android Studio (Build/Generate Signed Bundle/APK..) works for me. You also have to add this to your build.gradle: defaultConfig { ndk { abiFilters 'armeabi-v7a' } ... }

Robeszpierre commented 4 years ago

As mentioned before, the solution is to downgrade the package. But I had to force it, otherwise it doesn't work. So you have to add this to the app level build.gradle file. downgrade

dependencies { implementation('com.github.barteksc:android-pdf-viewer:2.8.2'){ force = true } }

techieasif commented 4 years ago

App size Increased by 20 mb? Anybody having Size issue after using this plugin?

lubritto commented 4 years ago

Hello guys, sorry about the late. I'm working on soo many projects at this moment. I will try your suggestions, fills free to open PRs and contribute with the package.

M1Joe commented 4 years ago

Looks like there is an open PR for this - https://github.com/lubritto/Pdf_Viewer_Plugin/pull/27

@lubritto you think the fix looks good and can be merged in?

jglatre commented 3 years ago

It seems that someone at stackoverflow has solved this issue: https://stackoverflow.com/questions/61519557/i-am-using-pdf-viewer-plugin-and-in-android-studio-i-have-no-problem-but-when-i

myselfuser1 commented 1 year ago

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA