Category "gradle"

How to find/remove unused dependencies in Gradle

I wanted to find unused dependencies in my project. Is there a feature for this in Gradle, like in Maven?

Flutter: Could not compile build file 'build.gradle', General error during semantic analysis: Unsupported class file major version 57

I try to develop an app using Flutter. Everything is OK when I initiate my app, it runs perfect for 2 days. But when I had an error writing my widgets, I restar

flutter android gradle error with flutterdownloader

I have implemented flutterDownloader (its a package for downloading files in flutter ) in my project and when I add it to android manifest like the doc says and

android gradle Received invalid response from the daemon

My project gradle is in building situation on the other hand i pushed the code on bitbucket after pushing when i come back to android studio this error comes

How do I create an executable fat JAR with Gradle with implementation dependencies?

I've got a simple project in Gradle 4.6 and would like to make an executable JAR of it. I've tried shadow, gradle-fatjar-plugin, gradle-one-jar, spring-boot-gra

Static methods in interface require -target:jvm-1.8

I'm building scala project using gradle 4.5, scala 2.11.11/2.12.4 with JDK 1.8.0_162 and it was working fine until I upgrade to scala 2.11.12. With 2.11.12 I ke

Gradle: Building a modularized library that is compatible with Java 8

So Java 9 is there, soon to be followed by Java 10. Time we should make our libraries ready for use in Java 9 projects. I did it in the following way: provide

Gradle - "Changes are not tracked, unable determine incremental changes."

When running my LibGDX desktop project I sometimes get this error: Changes are not tracked, unable determine incremental changes. I've tried using Java 8 and 17

Gradle - How to execute command line in doLast and get exit code?

task executeScript() { doFirst { exec { ignoreExitValue true commandLine "sh", "process.sh" } } doLast {

Changing .BuildConfig package

Is there a way to dynamically change the package of the generated file .BuildConfig? I want to use build.gradle file to use the applicationId and change the pa

How to enable assertions in the Gradle run task

By default, Java disables assertions. (The test I'm using here is assert false; as the first line in main().) I'd like to have them enabled while running my p

React Native: 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compat

Hello everyone I am trying to create and run a react native app. I run npx react-native init rn4 but when I run npm run android I have this error: > Task :re

Kotlin Test Coverage

Does anyone know if a good test coverage tool (preferably Gradle plugin) exists for Kotlin? I've looked into JaCoCo a bit, but it doesn't seem to reliably suppo

Error:Plugin with id 'com.github.dcendents.android-maven' not found

I'm using this library in my Android app. (https://github.com/yazeed44/MultiImagePicker) Before now, I was adding it to my project this way: compile 'net.yazeed

Android App crashes on older devices

My app works perfectly on my phone. On some older devices it crashes though: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.blub.bla/co

Error:Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle

I am getting this error in android studio 3.0. Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle I have checked my auto pro

How can I disable a task in build.gradle

I want to skip some tasks when I run gradle build. I know that it can be done from command line with -x: gradle build -x unwantedTask My question is how can t

Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1 how to fix this

I try to build android pdf reader and add a library com.github.barteksc:android-pdf-viewer:2.8.2 then it shows the following error My build.gradle file is pleas

Error with Gradle using VS Code: "Could not run build action using Gradle distribution"

I've started getting the following error message when opening an existing Gradle project in VS Code after upgrading the Gradle installation on my computer: Cou

Gradle can not find firebase auth ktx library in android

As you can see below, I have encounter this error when I try to download missing files inside firebase auth.ktx library otherwise I can not reach any document