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.

206 questions
3
votes
2 answers

Problems with dependencies

I want to create cool preferences activity. So I choose one of majority libraries from github (suppose this: https://github.com/codevscolor/MaterialPreference) But when I write dependency to my build.gradle I have warning about "mixing libraries…
user7836085
3
votes
1 answer

How to check available libraries and version numbers from https://maven.google.com

Ever since Google hosted its libraries in the new Google Maven Repository I'm having trouble keeping my dependencies up to date. How can I check which libraries are availalbe in maven.google.com? In addition how can I see all the available version…
ThanosFisherman
  • 5,626
  • 12
  • 38
  • 63
3
votes
0 answers

Android Studio Build Time with Gradle dependency vs Jar dependency

I am working in a product in which we are using 4 external libraries. All of these libraries were being included through External Jars. Build time with the Jar dependencies were about 10 minutes. I changed Jar dependencies with the Gradle…
3
votes
1 answer

Gradle dependency exclusion not working

My project build.gradle dependencies are: dependencies { ... compile 'com.google.code.gson:gson:2.3.1' compile 'com.google.android.gms:play-services-maps:8.4.0' compile 'com.google.android.gms:play-services-analytics:8.4.0' …
GuilhE
  • 11,591
  • 16
  • 75
  • 116
3
votes
2 answers

Resolve gradle build script dependencies

How to check resolve dependencies of build gradle script. For example I have plugin1 and plugin2, how I can figure out what dependencies pull both of them, and each separately? Is there any parameter to print out this info?
busylee
  • 2,540
  • 1
  • 16
  • 35
2
votes
0 answers

Gradle 6.8 implementation scope mapped to runtime in the Maven pom.xml. Shouldn't it be compile?

In this Gradle 6.8 build.gradle there are a bunch of compile dependencies. plugins { id 'java' } dependencies { compile "xxx:yyy.1.0.0" } With gradle install the generated pom looks as expected:
codependent
  • 23,193
  • 31
  • 166
  • 308
2
votes
1 answer

Is it possible to use different dependencies for different API levels when building an Android App Bundle?

I currently build two separate APK files, one for API levels 16-20 and another for API level 21+. For API 16-20 I use 'com.squareup.okhttp3:okhttp:3.12.0', which is the last version supported on API 20 and lower. For API 21+ I use the latest…
2
votes
2 answers

How to make Gradle cache persistent through Docker containers?

I have a Java(Gradle) project. A docker image is built in CI using Dockerfile: FROM gradle:6.8.3-jdk11 COPY --chown=gradle:gradle . /home/gradle/app WORKDIR /home/gradle/app RUN gradle compileTestJava Although gradle compileTestJava downloads all…
bohdan
  • 425
  • 1
  • 3
  • 8
2
votes
2 answers

ktor dependency in commonMain of Android Studio multiplatform project unresolved in IDE but code runs

I have an issue with the Android Studio IDE when using the ktor dependency for the commonMain sourceset with kotlin multiplatform. The problem is that the IDE does not recognize this dependency, but the program compiles and runs fine. Furthermore,…
2
votes
2 answers

ClassCastException while building signed Apk

My gradle dependency is repositories { google() mavenCentral() // maven { url "http://maven.ghostscript.com" } maven { url 'https://jitpack.io' } jcenter() } dependencies { classpath…
Asif Mehmood
  • 141
  • 1
  • 14
2
votes
0 answers

Can't resolve dependencies in test module shared with other modules with Gradle Kotlin DSL

I have a test-utils module which contains testImplementation, androidTestImplementation and some rules and file reading extension code such as fun getResourceAsText(path: String): String { return object…
Thracian
  • 43,021
  • 16
  • 133
  • 222
2
votes
0 answers

R8 warning "Missing class: javax.swing.JFrame", how to get ride of Swing?

Recently I noticed that when I compile my app in release mod, R8 log the following warning message: Missing class: javax.swing.JFrame along with others Swing/Java desktop classes like Missing class: java.awt.event.WindowAdapter or Missing class:…
Bencri
  • 1,173
  • 1
  • 7
  • 22
2
votes
1 answer

InvocationTargetException and "Failed to resolve attribute at index 13" on upgrade to com.google.android.material:material:1.1.0-alphaXX

Problem summary In my single-activity application I use a custom NavigationDrawerFragment with androidx.drawerlayout.widget.DrawerLayout containing com.google.android.material.navigation.NavigationView as a side menu to navigate between fragments.…
2
votes
2 answers

Bitmovin and Exoplayer conflicting dependencies

I am using both Exoplayer and Bitmovin libraries in my project compile "com.google.android.exoplayer:exoplayer:$rootConfiguration.exoPlayerVersion" compile "com.bitmovin.analytics:collector:$rootConfiguration.bitmovinVersion" and: exoPlayerVersion…
2
votes
2 answers

How to add a new dependency in build.gradle file from UI of Android Studio

I'm creating an Android app. I've named it app. I've to add below dependency in app module's build.gradle file: implementation 'com.firebase:firebase-jobdispatcher:0.5.0' But, I don't want to type it manually by editing build.gradle file. I want a…
RBT
  • 24,161
  • 21
  • 159
  • 240