After adding dependency "com.google.android.gms:play-services-location:15.0.1 " it shows error to "com.android.support:appcompat-v7:28.0.0" It shows that all com.android.support libraries must use the exact same version specification.
My dependencies are like below:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation `com.android.support:appcompat-v7:28.0.0`
implementation `com.android.support:design:28.0.0`
implementation `com.android.support.constraint:constraint-layout:1.1.3`
//GMS Services for location
implementation `com.google.android.gms:play-services-location:15.0.1`
The error is:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:media-compact-26.1.0.
If I remove gms dependency then the error for appcompact library has disappears. Any solutions will be appreciated.