cronet-sample icon indicating copy to clipboard operation
cronet-sample copied to clipboard

All available Cronet providers are disabled. A provider should be enabled before it can be used.

Open forgetW opened this issue 2 years ago • 9 comments

CronetEngine.Builder myBuilder = new CronetEngine.Builder(this); //Exception triggered here CronetEngine cronetEngine = myBuilder.build();

forgetW avatar May 07 '22 02:05 forgetW

I have the same problem on FireTV sticks. Any suggestion how to fix this?

ehsan9295 avatar May 25 '22 13:05 ehsan9295

CronetProviderInstaller.installProvider(/android context/);

tormentous avatar Aug 05 '22 04:08 tormentous

implementation 'org.chromium.net:cronet-embedded:108.5359.79'

ag2s20150909 avatar Sep 08 '22 15:09 ag2s20150909

Neither solved it for me.

av-mario avatar Nov 15 '22 10:11 av-mario

I am having the same issue, Any suggestion how to fix this?

HanCheng avatar Feb 07 '23 19:02 HanCheng

I suggest you try a different device model. HUAWEI always crashes while running this sample, but others are good.

sunjinbo avatar Jun 29 '23 08:06 sunjinbo

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

vipul-d avatar Sep 13 '23 10:09 vipul-d

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,

Sanjeetkushwaha11111 avatar Sep 28 '23 12:09 Sanjeetkushwaha11111

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.

Yogesh-1206 avatar Feb 16 '24 08:02 Yogesh-1206