Newest 'gradle' Questions - Stack Overflow

Questions tagged [gradle]

Gradle is a project build automation tool that uses a Groovy DSL. Gradle build scripts support Maven and Ivy repositories as well as plain file system for dependency management.

0
votes
0answers
2 views

Duplicated classes found in modules classes.jar

Working with "Cxense SDK for Android" Im getting the message of duplicated class Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar (com.android....
0
votes
0answers
6 views

How to build a .war file for deployment using gradle

So I've been playing around with spring boot for the first time and it works wonderfully, except I can't figure out how to build a .war file to deploy to my personal server. I've read a dozen or more ...
0
votes
0answers
5 views

Gradle task copy does not copy the specified file

I have this task in my build.gradle file that is supposed to copy a library into the build directory but I can't get it working and I don't know why. ... tasks.withType(Copy) { eachFile { println ...
0
votes
0answers
6 views

Referencing ButterKnife as a module in a Kotlin-based Android app

At my office we use Artifactory, which is managed by a different team and adding external artifacts takes a bit of time, for reasons that are very much out of my control. We are working on a new ...
0
votes
0answers
11 views

Json file not found exception on eclipse running on mac. Works fine on Windows

I have written a java code to get the JSON path string from URI, and URI from URL. when I run the code on Windows, it works fine but when I run the same code on Mac it gives Exception in thread "main" ...
0
votes
0answers
10 views

Android gradle error: All com.android.support libraries must use the exact same version specification?

You find dozens of questions of the same title on stackoverflow. Unfortunately none of those solved my problem. I got following error: All com.android.support libraries must use the exact same ...
0
votes
0answers
11 views

Issue thrown while building cordova app -> Execution failed for task ':processDebugResources'

I have an Cordova app (hybrid), while build / emulate that project I have faced the below issue. BUILD FAILED in 2s Error: /Users/current_user/Projects/MyProject/CordovaApp/platforms/android/gradlew: ...
0
votes
0answers
19 views

How to resolve the docker error“ Syntax error: ”(“ unexpected ”

I am new to docker and I am trying to build a docker file for my selenium code (uses gradle)to send it over to devOps for integrating in pipeline . I am able to build the image but when I try running ...
0
votes
1answer
26 views

When do I need to use Kapt in Gradle dependencies?

I have been installing dependencies in Gradle and I don't understand why sometimes I need to use kapt for libraries like lifecycle and room database to use @Something annotations. But in some ...
1
vote
1answer
10 views

How to restore/resynch Gradle inside IntelliJ?

I have been using Intellij 2018.1 and Gradle for a while now without issues. This is the first time I have seen this problem. I have a Gradle-based Java project that doesn't seem to behave correctly ...
1
vote
0answers
13 views

how to create the executable jar file for cucumber project [duplicate]

i want to create the executable jar file for my project as like we do for other java project. i am using intellij IDE. by using cucumber & serenity-gradle i had created by automation test scripts. ...
0
votes
0answers
8 views

Could not run phased build action using Gradle installation '…\gradle-5.4.1'

I am trying to set up a Java project in Eclipse which uses Gradle for its builds plus some self-defined Groovy code for the builds (placed - as usual - under buildSrc). So I first created a Java ...
-1
votes
0answers
26 views

Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02)

The run time gradle error : Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/...
0
votes
0answers
13 views

Define enum accessible from any submodule, in gradle

I have an Android Project with many modules. I defined enum enum Season { Summer, Fall, Winter, Spring } in main module's build.gradle but I cannot access it from any of the submodules' build....
0
votes
0answers
12 views

error: duplicate class while compiling java project with Gradle containing dagger generated sources

I'm building a Java project using Gradle for build the project and Dagger2 as dependency injector. And I'm getting this error: <path to the class>/MyModule_SourceConnectionDTOFactory.java:12: ...
2
votes
1answer
29 views

how to set spring.config.location for a gradle spring boot project in Intellij IDEA community version?

I want to configure spring.config.location or spring.config.additional-location in a Java Spring Boot project using Gradle in my Intellij IDEA community version. It is run in the IDE clicking the ...
1
vote
0answers
15 views

Immutables Autogenerated repository for MongoDB throws “Can't find a codec for interface” CodecConfigurationException

Problem Description. I use hereafter a simplified version of the example that is currently in the immutables site. So I have an item that I want to use with MongoDB. @Value.Immutable @Mongo....
1
vote
0answers
13 views

Gradle build in infinite state, but only in intelliJ debug mode

When i try to build my multi-project in the debug mode of intelliJ, then i will end in an infinite build, means some threads (Execution Workers) will do their execution for an infinite time. First of ...
0
votes
0answers
10 views

Prevent IntelliJ from overriding gradle jvm options specs

I'm trying to set a jvm argument from gradle. And it looks like IntelliJ is overriding the config. How do I prevent this? I tried setting the jvm arguments from gradle.properties and build.gradle. ...
0
votes
0answers
20 views

processDebugResources Error appears while building an android application using Ionic 3

I have a project that was built on Ionic v3. Usually it was working, but some time passed and now it throws an error. Current configuration is listed below: ionic info Ionic: Ionic CLI ...
0
votes
0answers
11 views

Set task properties (or command line args) using Gradle Tooling API

I want to use the Gradle Tooling API to invoke Gradle from an Eclipse plugin through the Buildship plug-ins. I am able to run basic tasks without problems. One of my use cases is to execute the ...
-1
votes
0answers
18 views

Gradle wrapper build failure : The SDK directory does not exist?

I am trying to build an android project in WSL using gradle. But when I execute the command gradle wrapper in the root directory of my project I get the following error: * What went wrong: A problem ...
0
votes
0answers
14 views

Can i build with Mono in Unity for armv7 and x86 and then in android studio add arm64 to gradle build file?

I have problem with il2cpp build in Unity Build error - OutOfMemoryException. I build in unity with Mono for armv7 and x86. Export to android studio. And in android studio i add abiFilters '...
0
votes
1answer
17 views

How do I fix this error in Android Studio if I have already added the Google Maven repository?

I'm using Android Studio version 2.3.3 and Facing the Gradle Error. I have Added the Logcat Error Below.. I've tried several the solution on Stack Overflow which says add the Google Maven repository, ...
3
votes
0answers
23 views

Buildship Java launch configuration missing JARs when specific version of Glassfish JAXB referenced

Background I'm migrating a large project to OpenJDK 11.0.2 from 8. As such I need to include JAXB implementation. Problem I've observed that applications launched from within Eclipse 2019-03 (4....
0
votes
2answers
8 views

Read Command Line arguments and split and perform a loop and exlude the files

I want to send a command line arguments with comma separated, and In build.gradle I want to read the command line arguments, spilt them using a , separator and using a loop I want to exclude all the ...
0
votes
0answers
14 views

Org.gradle.api.internal.tasks.compile.CompilationFailedException

i try to build android library with error i have replace compiler with implementation,but still error look detail error: org.gradle.api.internal.tasks.compile.CompilationFailedException: ...
0
votes
0answers
15 views

Android gradle configuration in the studio to store generated project file externally option

Android gradle configuration in the studio to store generated project file externally option has what function? I didn't see any change in whether I checked it or not.
0
votes
0answers
12 views

Gradle Publish Plugin fails with “Execution failed for task ':signArchives'.”

I release my org's gradle plugin go the gradle repository using the Gradle Publish Plugin Repo. https://plugins.gradle.org/. I created an account, created an API Key/Secret combo, and configured ...
0
votes
0answers
18 views

NoClassDefFoundError caused by ClassNotFoundException in Spring Boot App w/ Gradle in Eclipse

I'm new to creating a web application using Spring Boot with Gradle and I've been getting along alright, then all of a sudden without knowledge of what's changed, I can't run it as a Spring Boot app ...
0
votes
0answers
23 views

IntelliJ IDEA able to resolve dependencies but Gradle does not

I got trouble with Gradle wrapper build. My IntelliJ IDEA able to resolve dependencies but Gradle does not. I have a Gradle project structured as below: service |__app-service (Spring Boot ...
0
votes
0answers
12 views

Gradle 5.3 publish SNAPSHOT BadRequest Error

I am receiving an error in my circleci build when running the gradle publish step. I am using gradle 5.3 and realize they have change this functionality in 5.4.1. However, I do not understand why this ...
0
votes
1answer
20 views

How to check current build variant in Gradle?

In Android project gradle.build file looks like below: buildTypes { debug { } release { minifyEnabled true } emulator{ } } And then I would like to do ...
0
votes
0answers
15 views

How do I get SonarQube to count spock/groovy unit tests?

I am trying to configure SonarQube to report an accurate count of the unit test cases in my repository, currently it is only showing the java jUnit test cases. SonarQube reports the java jUnit test ...
0
votes
0answers
17 views

Why does IntelliJ give me osgi-related warnings for a project that doesn't use a manifest file?

After importing an existing project into IntelliJ, on several classes I get an error about org.apache.commons.lang3 classes. The format of the error is "The package 'org.apache.commons.lang3' is not ...
0
votes
0answers
5 views

Android Studio: Stable version's “Build” button works, but Preview release's build button does nothing

I'm trying out the Beta and Canary Android Studio builds. While the Stable version's Build button actually builds my project, the Beta and Canary releases do nothing when the Build button is pressed. ...
1
vote
0answers
22 views

Cannot resolve external dependency

Hello I'am new in Android. I got stuck here and this error appears: Cannot resolve external dependency org.jetbrains.kotlin:kotlin-gradle- plugin:1.3.31 because no repositories are defined. ...
0
votes
1answer
25 views

How do I use auth0 and swagger together in spring boot?

I am trying to use both Swagger and Auth0. Swagger alone is working fine when I'm hitting http://localhost:8080/swagger-ui. But, after configuring auth0. It is showing 403 Forbidden Error I'm using ...
0
votes
1answer
42 views

Android build suddenly starts failing with : resource android:attr/fontVariationSettings not found

Our android build started failing all on its own without a single line change for 2 days now. This is the error message: /Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/...
0
votes
0answers
12 views

Jacoco gradle offline instrumentation issue

I am using offline instrumentation for code coverage in gradle multi project, but I am getting below error : Caused by: java.lang.IllegalStateException: is already instrumented. build.gradle is as ...
-1
votes
2answers
26 views

Default micronaut application not running

Not being able to execute the default micronaut application using basic cli commands. This problem has occured on both the Maven and Gradle default projects. I don't understand why I'm having issues ...
1
vote
2answers
33 views

Can't build React Native 0.59.8 android.support.v4.net.ConnectivityManagerCompat

I migrated to the newer React Native and updated some libraries to the latest version. A piece of my project.json: "@react-native-community/async-storage": "^1.4.1", "@react-native-community/netinfo":...
0
votes
1answer
11 views

Dagger2 not finding annotated methods

I'm building a Java project using Gradle for build the project and Dagger2 as dependency injector. And I'm getting this error: <path to the class>/MyComponent.java:13: error: [Dagger/...
3
votes
0answers
26 views

Gradle configuration takes more than few seconds

I am trying to optimize build process of Android application. It is a multimodule project (63 modules) and pretty much all of them are android-library. I have tried to comment out everything possible,...
1
vote
0answers
13 views

Starter script for Gradle Kotlin application cannot find main class

I'm trying to build a Kotlin application using Gradle 5.4.1. The code generated by gradle init can be run via ./gradlew run, and I assumed I should be able to execute the script generated in build/...
0
votes
0answers
10 views

Eclipse Fat Jar Export Could Not Find Class-path Entry for a “bin/default” Folder

I have a Gradle project in Eclipse (just Desktop and Core), and I'm trying to export the desktop project as a runnable jar, but I am told that the fat jar export could not find a class-path entry for "...
0
votes
1answer
25 views

Gradle build script failing in java 10

I am trying to build my program but gradle throws this error when trying to install my program Caused by: org.gradle.api.GradleException: Could not list contents of '/usr/bin/javah'. Couldn't follow ...
0
votes
0answers
12 views

Android Studio: how to set annotation processor options for release variant

I'm working on Android Java project with Android Studio. I need to customize annotation processor options for release variant. My Gradle config file is: apply plugin: 'com.android.application' apply ...
0
votes
2answers
23 views

I can't seem to build my android application when I'm signing it

I can build the application when it's not signed but every time I try to sign Android Studio says something along the lines of "ERROR: Failed to resolve: com.android.support.cardview-v7:27.1.1" I'...
1
vote
1answer
21 views

Execution failed for task ':react-native-admob:verifyReleaseResources'

I had a third-party dependency (react-native-admob) which specified in its build.gradle file the following: com.google.android.gms:play-services-ads:+. Taking a look over at the Google Android APIs ...