When attempting to include the Google Play Services location library, I am getting the following error:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value
value=(25.4.0) from [com.android.support:design:25.4.0]
AndroidManifest.xml:28:13-35 is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.
My dependencies are as follows:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// You must install or update the Support Repository through the SDK manager to use this dependency.
compile 'com.android.support:support-v4:25.4.0'
compile 'com.android.support:design:25.4.0'
implementation "com.android.support:appcompat-v7:25.4.0"
implementation "com.android.support:preference-v14:25.4.0"
implementation "com.koushikdutta.ion:ion:2.+"
implementation 'com.twilio:video-android:2.0.0-beta2'
implementation 'com.google.android.gms:play-services-location:12.0.0'
compile('org.simpleframework:simple-xml:2.7.+') {
exclude module: 'stax'
exclude module: 'stax-api'
exclude module: 'xpp3'
}
}
What I have already tried:
- Changing the version of the support library. If I do this, I get a slew of errors about resources and attributes not being found.
- Adding a resolutionStrategy as described in several posts with similar errors, like this one. That results in a similar litany of errors.
- Updating the version of the build tools.
- Updating the compileSdkVersion.
I feel that there must be a simple solution but I cannot seem to find it. Thanks for your time.