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]
206 questions
2
votes
6 answers
Could not find method implementation() for arguments [com.google.firebase:firebase-ml-model-interpreter:15.0.0]
I am trying to open existing android project in Android Studio and gradle cannot build the app and it shows the error as:
Error : strong text Could not find method implementation() for arguments…

Vivek Jm
- 121
- 1
- 2
- 6
2
votes
2 answers
Android Studio dependencies conflict (Program type already present)
I've had a RecyclerView in my project, and I can't build it.
There is my build.gradle file :
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "app_name"
minSdkVersion 27
…

MMartinenq
- 43
- 5
2
votes
1 answer
Android - Gradle - How to download transitive dependencies for an included jar
I have included a jar in my android project,
build.gradle
as
implementation files('libs/dependency_a.jar');
But there are dependencies with are needed by this jar file, which can be downloaded from the internet but don't get downloaded while…

Sunny
- 7,444
- 22
- 63
- 104
2
votes
1 answer
How to resolve Unable to merge dex
When I was compile my application so I got below error like,
Error:Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Unable to merge
dex
I add the …

Raj
- 61
- 8
2
votes
1 answer
How to tell Gradle to reuse dependencies in a Continuous Integration template system?
We have a project template, cleaned, without being compiled it only needs 5mb of disk space. On our Continuous Integration system, the template is being copied for each of our projects and after that, it's being changed by a script which prepares…

NullPointerException
- 36,107
- 79
- 222
- 382
2
votes
2 answers
Gradle dependency project test-jar
I have a multi-module gradle project and I want to make use of some of the test classes from the shared module in my dependent module.
dependencies {
compile project(':shared-module')
testCompile project(':shared-module'), classifier:…

troymass
- 1,022
- 3
- 11
- 24
2
votes
1 answer
Gradle "changing" dependencies management
I want to share my problem with you. Maybe somebody faced this problem also and will have solution.
In brief Gradle doesn't resolve frequently changing dependencies.
We're using:
./gradlew…

Alex
- 142
- 2
- 13
2
votes
1 answer
Semantics to express gradle dependencies
I see that I can specify gradle dependencies like this:
dependencies {
compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.1'
compile 'com.fasterxml.jackson.core:jackson-core:2.8.1'
compile…

manfcas
- 1,933
- 7
- 28
- 47
2
votes
0 answers
Gradle dependencies - range matching
I am trying to add the following dependency to my Gradle build file:
compile 'org.eclipse.scout.sdk.deps:org.eclipse.core.resources:3.10.+'
This package depends on a lot of other packages, that are located in the same repository. The problem is…

r02
- 191
- 2
- 7
2
votes
1 answer
transformClassesWithJarMergingForDebug TransformException
After updating to android studio 2.1 and while i tried to use new gradle my project started crashing with kinda that:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.>
…

Igor Komarov
- 21
- 2
2
votes
1 answer
Dependencies for custom incremental Gradle compile task
I'm wondering about the best approach for managing a custom compile step with files that have transitive dependencies if want my compile task to be incremental. Here's the specific use case: I have a directory full of templates (handlebars templates…

Oliver Dain
- 9,617
- 3
- 35
- 48
2
votes
2 answers
Unable to import LastModifiedFileComparator in Android
I'm trying to use LastModifiedFileComparator referring http://www.avajava.com/tutorials/lessons/how-do-i-sort-an-array-of-files-according-to-their-last-modified-dates.html in Android.LastModifiedFileComparator isnt being resolved by using the import…

zek54
- 415
- 3
- 20
1
vote
0 answers
Could not determine the dependencies of task ':react-native-community_toolbar-android:compileDebugAidl'
I'm upgrading this two repositories gradle versions and Android SDK API level version to the latest one.
https://github.com/jsierles/react-native-audio
Gradle version: 3.4.2 to 7.2.1
SDK ver: 28 (target & compile) | Tools: 28.0.3
To SDK ver: 33…

z3nth10n
- 2,341
- 2
- 25
- 49
1
vote
0 answers
Is there a way to recompile project only if gradle dependency changed a public class that is used in my project?
Let's say there are modules A & B.
A depends on B implementation(project(":B")), let's say by using bClassObj.doSomething("hello").
So we have:
BClass.kt
`fun doSomething(salute: String)`
If B modifies ANY class, then it will force A to be…

htafoya
- 18,261
- 11
- 80
- 104
1
vote
0 answers
How to update Gradle project locked dependencies
I'm updating AWS Java SDK version using IntellJ, tried everything but both compileClasspath & runtimeClasspath dependency doesn't change at all.
Here is the Project https://github.com/Netflix/conductor
main build.gradle…

user1883793
- 4,011
- 11
- 36
- 65