Category "gradle"

Can't find Composer Class when Building

I'm trying to add compose to my existing project and getting the following exception when building e: java.lang.IllegalStateException: Cannot find the Compose

Build android error at stage app:mergeDebugResources, ParseError AttributeNSNotUnique

I've been trying to build my Android Application on Android Studio 4.2 with Gradle 4.2.1, but I am faced with the following error of which I was only able to fi

Gradle Script message "Recompile with -Xlint:deprecation for details"

Note: --:-----\.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

gradle war CopySpec “add only” (no override)

I’m trying to set up the files that are copied to my war. The source directory has 2 directories, and some of the files below them should be added to the

How to disable gradle 'offline mode' in android studio 4.2?

Since I updated my Android Studio to 4.2, I am not able to toggle the Gradle Offline mode.

TestEngine with ID 'junit-vintage' failed to discover tests - JUnitException: Failed to parse version of junit:junit: 4.13.2

I'm having a very weird issue with my Gradle config and JUnit, I have tried updating to 5.7+ but I'm getting the following exceptions: org/junit/jupiter/api/ex

TestEngine with ID 'junit-vintage' failed to discover tests - JUnitException: Failed to parse version of junit:junit: 4.13.2

I'm having a very weird issue with my Gradle config and JUnit, I have tried updating to 5.7+ but I'm getting the following exceptions: org/junit/jupiter/api/ex

Flutter error Unable to start the daemon process

My flutter project is run smoothly in my old laptop. But when I use my new laptop, my flutter project can't run in debug mode. This error FAILURE: Build faile

"the device is not ready" when running Flutter app

I install latest version of flutter on windows 10 and when I want to run app with VScode or Android Studio, I get this error: FAILURE: Build failed with an exce

Read value from local.properties via Kotlin DSL

I want to retreive key from local.properties file that looks like : sdk.dir=C\:\\Users\\i30mb1\\AppData\\Local\\Android\\Sdk key="xxx" and save this value in m

Progruard and R8 being deprecated - Android Studio 3.6

I'm getting deprecated warnings in regards to Proguard as well as R8 after upgrading my Android Studio to 3.6. Does that mean we shouldn't use obfuscation in ou

Can not build the android application after upgrading to flutter 3.0

Command: flutter run --flavor dev --no-sound-null-safety FAILURE: Build failed with an exception. Where: Script '/Users/petodavid/Developer/flutter/packages/flu

Observe stdout from multiplatform kotlin commonTest code

I just want to see the output from a few simple println(...) in my Kotlin mulitplatform commonTest code. My build.gradle.kts looks a little like: import org.je

Missing dependency on EmbeddedKafka on integration test with groovy and spock

I've been trying to create an integration test using the embeddedKafka, but I'm getting problem of missing dependency when trying to run it, this is the error:

How to access variant.outputFileName in Kotlin

We've been using a snippet like this one to rename the APK file generated by our Gradle build: android.applicationVariants.all { variant -> variant.outp

gradle Unexpected lock protocol found in lock file. Expected 3, found 0

getting "Unexpected lock protocol found in lock file. Expected 3, found 0" error when trying to debug even after following this link and deleting the .gradle fo

Can't jUnit test with file from resources folder

I'm trying to unit test with a file located under src/test/resources, but I can't always get a nullpointer when I'm trying to read it. I'm using Spring Boot 2.

Can I add external jar present in lib>jars folder using Gradle wrapper?

I was successful in running TestNG(7.5) using Gradle but when I use Gradle wrapper then its giving error because it could not detect external Jars when using gr

A Gradle based sub-project throws `Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain` during the build

I have a Gradle based multi-project. The issue is with one of the sub-projects. I have some tests there, but all code inside is commented out. Whenener I run "b

Pitest is failing showing: No mutations found due to the supplied classpath or filters + Gradle

I'm trying to run a pitest report on a gradle + kotlin project, but I get the following error: Exception in thread "main" org.pitest.help.PitHelpError: No mutat