Category "gradle"

Cannot access 'java.lang.Object' which is a supertype of... Check your module classpath for missing or conflicting dependencies

I thought it would be fun and informative to learn more about static code analysis by implementing my own custom linter. I've been trying to declare the below d

Where is the documentation for build.gradle's `android` block?

In a build.gradle, we have the android block. From my limited understanding of Android Gradle Plugin (and Groovy/ Kotlin), this is a method/ (or function?) call

Error AAPT2 aapt2-4.1.2-6503028-windows Daemon

When I build apk in Android Studio, it fails with an error like this: Execution failed for task ':app:mergeReleaseResources'. Multiple task action failures oc

Where and how to add classpath dependencies in gradle 7.2?

For android project created with gradle 7.2, the project gradle is very different from the previous ones, it now only contains these // Top-level build file whe

Compile the Kotlin android file through the command line compiler, show unresolved reference: synthetic

I used kotlin-android-extensions the kotlin code is simple import android.os.Bundle import android.widget.TextView import android.widget.Toast import kotlinx.an

how to disable gradle build scan permanently?

I know I can add --no-scan on an individual command line (see https://docs.gradle.com/build-scan-plugin/), but I'm looking for a way to disable this in build.gr

Create one aar from multi module library in android

I have the following modules in my aaplication Module -app -library_1 -library_2 the module library_1 'has dependecy of library_2 build gradle library_1 de

Which version of spring doc open ui gradle plugin be used with spring-boot 2.6?

Which version of spring doc open ui gradle plugin be used with spring-boot 2.6 ? I see this is the last plugin id "org.springdoc.openapi-gradle-plugin" version

Android / Execution failed for task checkDebugAarMetadata / A failure occurred while executing CheckAarMetadataWorkAction

TL'DR: In this Android Kotlin library I updated from Gradle 5.6.4 to 6.6.1 (commit d5d8d2). Now I cannot build a project depending on the aar anymore. Test setu

Gradle : DSL element 'useProguard' is obsolete and will be removed soon

Since the 3.5 update of Android Studio, I have this warning when building my app : DSL element 'useProguard' is obsolete and will be removed soon. Use 'an

How to call custom Java method from Gradle

Please, what is the most convenient way how to call a Java method within Gradle build script? This method contain functionality I want to use during build; a pi

Gradle Daemon could not be reused

I am trying to run a react native project but I see an error saying "Starting a Gradle Daemon, 14 busy and 1 incompatible and 2 stopped Daemons could not be reu

Gradle failure A problem occurred evaluating project ':app'

I am trying to build the gradle for my app but the build fails I've looked around some other questions regarding to this issue and I couldn't solve it. Also, I

Azure DevOps iOS and Android React Native Build Failing on Pod Install and Gradle Build Steps

I am trying to create CI/CD pipeline, for iOS and android, in Azure Devops for a React-Native app. With the android pipeline, whether I choose to create a yaml

How to use Kotlin with a Bukkit/Spigot plugin and Gradle

I am trying to use Kotlin for a Spigot plugin (for version 1.8.8), as I find Kotlin a lot more efficient to use. But, whenever I try and run the plugin, I get t

How to configure gradle to use logback-classic ONLY for unit tests in Android?

I have an Android app thich uses slf4j + logback. Gradle file looks like this: ... compile('com.github.tony19:logback-android-core:1.1.1-6') { exclude grou

Exclude transitive dependency of Gradle plugin

Excluding a transitive dependency in Gradle is pretty straightforward: compile('com.example.m:m:1.0') { exclude group: 'org.unwanted', module: 'x' } H

2 files found with path 'core.properties' from inputs:

I'm trying to upgrade a project to android 31 and latest Gradle version 7.3.0-alpha03 but, I'm getting some errors this is my stacktrace > Task :app:mergeSta

can not test api 32 it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00"

I want test fun but i have error it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00" I use emulator api 32 and can not run test > Task :ap

How to run Gradle from a Python3 script

I want to run Gradle from a Python3 script. I can call Gradle from a terminal, but I can not figure out how to call it from a Python script. example for call i