It may causes for several reasons – I have found 2 reason and solution .
Problem 1 :
If you use firebase service and it’s gradle version are older version . Or google play service , gms service are not updated version that can create this problem .
Update all gradle version updated and same version for firebase .
Problem 2 :
If multidex not enabled