Questions tagged [gradle-dependencies]

to manage the versions of all compile and runtime dependencies of a project, including resolution rules for transitive dependencies with conflicting versions.

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…
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…
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…
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…
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…
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:…
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 …
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…
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…
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…
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…
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…
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…
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…
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…
1
2 3
11 12