permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.22k stars 1.44k forks source link

support-v7 version #518

Closed leiurayer closed 6 years ago

leiurayer commented 6 years ago
dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation "com.github.hotchemi:permissionsdispatcher:3.3.1"
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:3.3.1"
}

when syncing the gradle file, Android studio prompts error: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 27.0.2. Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:support-media-compat:27.0.2

I know it could be solved by using appcompat-v7:27.0.2, but I want to use appcompat-v7:27.1.1

hotchemi commented 6 years ago

Try

implementation('com.github.hotchemi:permissionsdispatcher') {
    exclude module: 'appcompat-v7'
}