Category "gradle"

How to run the Gradle kotlin-dsl plugin in an offline environment?

Because of reasons, the machine I'm developing on, is not connected to the internet. I have a local copy of all dependencies for the app and the build script. I

Gradle archive contains more than 65535 entries

I am integrating hadoop2.5.0 for running mapreduce job and spring-boot-1.2.7 release and getting error while including this 1) archive contains more than 65535

NDK Error "Unexpected native build target xyz. Valid targets are:"

I have an Android Studio project which depends on a native shared library. I have created a cmake file to compile the library and I have added a soft link to th

MapStruct not autowiring with Kotlin and Spring Boot, built using Gradle

I have the following parts in my gradle file: apply plugin: 'kotlin-kapt' ... compile("org.mapstruct:mapstruct:1.3.0.Final") kapt("org.mapstruct:mapstr

Could not determine artifacts for com.github.Kunzisoft:Android-SwitchDateTimePicker:1.9: Skipped due to earlier error

Just building my new app and after launching I get this error in my build.gradle file can anyone help? Could not determine artifacts for com.github.Kunzisoft:A

java.lang.RuntimeException: Manifest merger failed with multiple errors

When i am build the app error occur java.lang.RuntimeException: Manifest merger failed with multiple errors java.lang.RuntimeException: Manifest mer

Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio

I am developing an Android App in Android Studio. Not quite sure what went wrong. I was successfully building a few days ago. Any help would b

"Task 'compile' is ambiguous in root project" - Android Studio

Every time I try to run my project, clean it or build it I get a gradle error: Error:FAILURE: Build failed with an exception. * What went wrong: Task 'compile

Gradle removes directory defined as task output (stale directories)

I have an unzipData gradle task defined as following: task unzipFile(type: Copy) { dependsOn mkdirTrash dependsOn downloadFile from zipTree(file("$trash

How to solve Error: Invalid or corrupt jarfile

I have a Intellij Gradle project for HelloWorld. The program runs in the IDE but running the jar files with an invalid or corrupt jar error. I made several chan

Update the Android Gradle plugin to version 3.2.0 or higher / generate Flutter signed APK

I'm developing a flutter cross-platform supporting app using Android Studio. Now I'm trying to generate signed APK for app-release but I face this following err

Updated to Android Studio Arctic Fox and now I am stuck with "Execution failed for task ':app:kaptDebugKotlin'"

Just updated to Android Studio Arctic Fox on Mac, and after fixing and updating all Gradle settings to make it compatible with Gradle 7.0 and anything this new

Gradle .lock files not removed when stopping build manually

When running gradle build from command line and manually terminating with Ctrl+Z, the .lock files, generated by gradle aren't removed. During the next build, I

How to import org.apache.httpcomponents using Gradle

Just trying to make some POST requests in an Android app. I was testing with HttpClient 4.5.3 (https://hc.apache.org/downloads.cgi) in a standalone script. Ever

Disable Firebase initialization when running instrumentation tests for modules

I have a multi module project. I want to be able to run the instrumentation tests i'm writing for these modules separately. I am continually running into the

Gradle build failed: Main class name has not been configured and it could not be resolved

I am building a RESTful web service with Spring by following this guide. I am using grable to build the app but my build is failing. I used the "build gradle"

How to pass command line argument to Gradle Kotlin DSL

Here's an example from Groovy that represents exactly what I would like to achieve: Command line: ./gradlew jib -PmyArg=hello build.gradle.kts task myTask

Cordova build Execution failed for task ':app:compileDebugJavaWithJavac'

I am building mobile app using cordova https://cordova.apache.org/ I am facing error when I am trying to build for android platform even after updating build.gr

Gradle - "enforceUniquePackageName" deprecated with version 3.0.0+?

android { enforceUniquePackageName = false } "enforceUniquePackageName" works with the gradle version: dependencies { classpath 'com.android.tools.bu

How to bypass SSL verification for Gradle 4.5?

I am getting this error while trying to connect to Nexus Maven proxy repository, but Nexus is running over HTTPS with a self-signed certificate. How can I bypa