to manage the versions of all compile and runtime dependencies of a project, including resolution rules for transitive dependencies with conflicting versions.
Questions tagged [gradle-dependencies]
171 questions
47
votes
3 answers
Android gradle Failed to resolve: play-services-basement
suddenly gradle is unable to build the same code that was working moments ago !
my project depends on google play service dependencies
it says :
Could not find play-services-basement.aar…
![](../../users/profiles/8242022.webp)
Ahmed Ali
- 788
- 1
- 8
- 15
21
votes
1 answer
Android: force gradle to include only one version of a library
I use 'com.android.support:support-v4:23.3.0' in my build.gradle but when explore external libraries I see two version of support-v4 library (23.3.0 & 24.0.0). How can I find which dependency use support-v4:24.0.0 library? How can I force gradle to…
![](../../users/profiles/6133481.webp)
Mneckoee
- 1,833
- 5
- 16
- 29
12
votes
1 answer
Gradle: download Dependencies of included aar-library
I wrote a library-project cameraBarcodeScanner that is built into an aar file. This library has the following dependencies defined in its build.gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile…
![](../../users/profiles/999041.webp)
battlepope
- 270
- 3
- 16
10
votes
3 answers
Use Gradle sub-projects with Kotlin multiplatform
I'm using Kotlin multi-platform (JVM & JS), which in IDEA creates three projects: demo, demo-js and demo-jvm.
I would like to split the common code into more subprojects/submodules. Let's say I add commonmod; how do I make it compile?
The error…
![](../../users/profiles/723090.webp)
Mark
- 15,245
- 6
- 95
- 113
9
votes
2 answers
How to ignore bad pom 'inconsistent module descriptor' (version)
I need a dependency which has an inconsistent version number in it's pom.
Apache XmlSchema-Pom has as version SNAPSHOT which is obviously not correct as it should be 1.1.
According to this gradle discussion it should be possible if the maven…
![](../../users/profiles/4244993.webp)
jmattheis
- 8,442
- 8
- 43
- 52
7
votes
4 answers
CrashlyticsInitProvider skipping initialization
I am currently migrating an app from Fabric to Firebase Crashlytics and after updating all the different libraries as stated in the official documentation, I am getting a log message stating that the Crashlytic initialization has been skipped:…
![](../../users/profiles/1226242.webp)
PayToPwn
- 1,141
- 1
- 14
- 27
7
votes
3 answers
Failed to resolve: support-compat ONLY FOR :27.1.1
I have an android module with this build.gradle file:
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
…
![](../../users/profiles/5318303.webp)
Mir-Ismaili
- 8,113
- 2
- 52
- 76
6
votes
1 answer
Gradle multi project transitive dependency
I have three gradle projects. Say ProjectA, ProjectB and ProjectC.
ProjectC is dependent on both ProjectA and ProjectB. While ProjectB is dependent on ProjectA.
So ProjectC's build.gradle has the following lines:
dependencies {
implementation…
![](../../users/profiles/887235.webp)
Vicky
- 14,433
- 48
- 122
- 211
6
votes
3 answers
Android gradle androidDependencies command errors
So, when I run the androidDependencies command from Android Studio I get the following LONG output. What do all the ERRORS mean? It still builds successfully, should I do something about the errors and if so how do I go about cleaning them…
![](../../users/profiles/1268048.webp)
Phil
- 3,779
- 3
- 51
- 94
6
votes
1 answer
Not able to remove transitive dependency from gradle in an Android Project
I am trying to remove the transitive dependencies from my Android project and for some reason exclude is not working when i try to remove a dependency from my particular dependency.
For example i want to remove support-annotations from my project
if…
![](../../users/profiles/1118886.webp)
Sheraz Ahmad Khilji
- 8,072
- 8
- 46
- 83
6
votes
2 answers
Gradle dependency for specific architecture with ABI splits
Im facing this problem which seems im not able to solve. Here is scenario:
Im building apk which uses gradle dependency and this dependency is architecture specific so for apk for x86 i need different dependency and for arm different as well.
I…
![](../../users/profiles/1331415.webp)
Simon Dorociak
- 32,775
- 10
- 65
- 104
5
votes
1 answer
Define an artifact to be used as a dependency in another project
TL;DR
I'm trying to configure two Gradle projects in a way that one project uses files built by the other one.
The first project is added to the second one by includeBuild and the file is defined in the second project as a dependency.
Project…
![](../../users/profiles/3052438.webp)
NO_NAME
- 2,233
- 17
- 45
5
votes
2 answers
Which Maven BOM determines a dependency's version in Gradle 5?
I am currently developing a Gradle 5 project that imports two different Maven BOMs. Therefore, I use the native Gradle syntax without the dependency management plugin. However, both BOMs may define different versions for the same…
![](../../users/profiles/2439890.webp)
Robin Ellerkmann
- 1,979
- 4
- 25
- 30
5
votes
0 answers
Gradle - How to Fail on Major Version Conflict?
If my project requires dependency com.abc:xyz:1.2.0, and I have another dependency that transitively wants com.abc:xyz:2.0.0, this is a major problem because even if my project compiles, there could be behavior differences. For some reason in this…
![](../../users/profiles/713861.webp)
GreenSaguaro
- 2,015
- 2
- 17
- 27
5
votes
3 answers
Dependencies are up-to-date but Gradle thinks not
Why does Gradle give this error about dependencies when I have used the latest and same version? This has only just started today and I'm lost as to how to fix this:
All com.android.support libraries must use the exact same version specification…
![](../../users/profiles/3293579.webp)
SD826E
- 6,673
- 7
- 45
- 92