cronet_flutter icon indicating copy to clipboard operation
cronet_flutter copied to clipboard

Force close

Open muhammadsaddamnur opened this issue 3 years ago • 1 comments

Hi @Sunbreak , i have some issue and stuck in here 😅 when i running in debug/profile mode it's fine, but if I run flutter run --release or flutter build apk application always force close on emulator or real device.

This issue also occurs in this package https://pub.dev/packages/cronet

Screen Shot 2022-02-18 at 19 04 37 Screen Shot 2022-02-18 at 19 04 37

muhammadsaddamnur avatar Feb 18 '22 12:02 muhammadsaddamnur

Could you post full log of Failed to find class J/N?

It seems to be related to ProGuard config. You'd better try keep some classes from CroNet, e.g. ContextUtils

https://github.com/Sunbreak/cronet_flutter/blob/fce965e7aa749dc6e2a06fc4e6db3f0fd8ce8b83/android/src/main/kotlin/com/example/cronet_flutter/CronetFlutterPlugin.kt#L23

Sunbreak avatar Feb 21 '22 03:02 Sunbreak