Category "gradle"

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

Could not resolve all files for configuration ':app:debugRuntimeClasspath'., flutter

I don't know whats causing this error in flutter, I just tried to create a new project and I am getting this error, I have upgraded and also downgraded my flutt

Gradle: Override transitive dependency by version classifier

One of the dependencies declared in my project has a transitive dependency on 'com.google.guava:guava:15.0'. But my application deployed on WAS/Weblogic doesn't

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8, but i'm using java 11

I imported a Flutter project, and when I tried to run it, I got this message error: FAILURE: Build failed with an exception. * Where: Build file '/home/omer35

How to get the information of transitive dependencies in a gradle task?

I want to get information of all dependencies (including transitive ones) in a gradle task. I tried the code: class MyGradlePlugin implements Plugin<Proje

avro gradle plugin sample usage

I am trying to use the avro-gradle-plugin on github, but have not gotten any luck getting it to work. Does anyone have any sample code on how they get it to wo

gradlew.bat (and gradlew) SSLHandShakeException

I'm new to Gradle and was going through this Spring Tutorial found here: http://spring.io/guides/gs/gradle/ I get to the part where it tells me to add this ta

Android Studio gradle takes too long to build

My Android Studio project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays? I have tried https://stackover

Android Studio is giving errors and warnings after enabling view binding. How to fix?

I am getting errors after i enabled view binding in my project. I have tried resyncing the project, invalidating cache. My app gradle file: apply plugin: 'com