cronet-sample
cronet-sample copied to clipboard
All available Cronet providers are disabled. A provider should be enabled before it can be used.
CronetEngine.Builder myBuilder = new CronetEngine.Builder(this); //Exception triggered here CronetEngine cronetEngine = myBuilder.build();
I have the same problem on FireTV sticks. Any suggestion how to fix this?
CronetProviderInstaller.installProvider(/android context/);
implementation 'org.chromium.net:cronet-embedded:108.5359.79'
Neither solved it for me.
I am having the same issue, Any suggestion how to fix this?
I suggest you try a different device model. HUAWEI always crashes while running this sample, but others are good.
In cases where Cronet cannot be loaded from Google Play services, there is a less performant implementation of Cronet's API that can be used. To use this fall-back implementation, depend on org.chromium.net:cronet-fallback and call new JavaCronetProvider(context).createBuilder().
https://developer.android.com/guide/topics/connectivity/cronet/start#set-up
implementation 'org.chromium.net:cronet-embedded:108.5359.79'
I was so frustrated with issue that, I thought what the ffff. but jut adding this library solved well for me,
implementation 'org.chromium.net:cronet-embedded:108.5359.79'
I was so frustrated with issue that, I thought what the ffff. but jut adding this library solved well for me,
It will actually increase the size of the app by 10-15MB, so it should not be a suggested solution. https://medium.com/@yogesh8435661391/implementing-cronet-http3-quic-a55f71cb4bcb
Please help with this issue to fix it without adding this much size in apps.