Everything works just fine in debug mode, but running the app in release mode shows a blank screen instead of the PDF preview.
I got the above log in logcat:
04-03 18:36:31.360 29300 29749 E .tenant_app.dev: No implementation found for long com.shockwave.pdfium.PdfiumCore.o(int, java.lang.String) (tried Java_com_shockwave_pdfium_PdfiumCore_o and Java_com_shockwave_pdfium_PdfiumCore_o__ILjava_lang_String_2)
After disabling the shrinking option on build.gradle, the problem was solved.
It seems that there is an issue when shrinking this plugin.
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.6, on macOS 13.2.1 22D68 darwin-x64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.76.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
I'm using flutter_cached_pdfview: ^0.4.1.
Here is my code:
Everything works just fine in debug mode, but running the app in release mode shows a blank screen instead of the PDF preview.
I got the above log in logcat:
After disabling the shrinking option on build.gradle, the problem was solved.
It seems that there is an issue when shrinking this plugin.
Flutter doctor: