Last active
May 2, 2018 06:40
-
-
Save STAR-ZERO/4c98b0decd6eee1c020e9912ed2963a0 to your computer and use it in GitHub Desktop.
support libraryのバージョンコンフリクト対応
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def supportLibraryVersion = '27.1.1' | |
android { | |
// ... | |
defaultConfig { | |
// ... | |
multiDexEnabled true | |
} | |
// ... | |
} | |
configurations.all { config -> | |
config.resolutionStrategy { | |
eachDependency { DependencyResolveDetails details -> | |
// multidex以外のsupport libraryのバージョン固定 | |
if (details.requested.group == 'com.android.support' && !details.requested.name.contains('multidex')) { | |
details.useVersion supportLibraryVersion | |
} | |
} | |
} | |
} | |
dependencies { | |
// ... | |
implementation "com.android.support:appcompat-v7:$supportLibraryVersion" | |
implementation "com.android.support:design:$supportLibraryVersion" | |
// ... | |
debugImplementation 'com.willowtreeapps.hyperion:hyperion-core:0.9.22' | |
debugImplementation 'com.willowtreeapps.hyperion:hyperion-attr:0.9.22' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment