To remove this Dex issue just implement one dependency.
This issue occur when we are using multiple different service from the same server. Suppose we are using ads and Firestore in a project and both have a repository maven. so we need to call different data with on repository we need dex dependency to implement.
The new update Dependency:-
implementation 'com.android.support:multidex:1.0.3'
I'm sure it will resolve your issue permanent !
To remove this Dex issue just implement one dependency.
This issue occur when we are using multiple different service from the same server. Suppose we are using ads and Firestore in a project and both have a repository maven. so we need to call different data with on repository we need dex dependency to implement.
The new update Dependency:-
implementation 'com.android.support:multidex:1.0.3'
or use testCompile inside compile such as :
implementation 'com.google.android.gms:play-services-ads:15.0.1'
testCompile 'com.google.firebase:firebase-firestore:17.0.1'
and also make `multiDexEnabled true;`
100 % it will work !