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
3 views

How do I create a release jar for jitpack from a java library module in android studio that's dependency is only java and not anything else?

I already have an android studio dependency release for my github repository, but I also want to create a simple jar file that people can use as a gradle dependency in their projects. Or, if there is ...
0
votes
0answers
18 views

How to build a project that accesses a shared library written in C++ from Java/Kotlin code via JNI using Gradle?

I want to compile a Kotlin project that uses some of my already written C++ library functionality, I found out that Java Native Interface is what I need, as I can kind of write a wrapper to call ...
0
votes
2answers
19 views

DSL implementation() not found despite all requirements fullfilled

I'm updating Android Studio, Gradle and the gradle plugin in my project, because I want to implement MoPub. MoPub only seems to work with the new versions of gradle, so I finally have to upgrade from ...
0
votes
1answer
11 views

Different between publishApkNameRelease and publishNameRelease CI/CD

iam trying to publish new version of the app using this plugin: 'com.github.triplet.play' and when i ran gradlew app:publishApkRelease i got this error message What went wrong: Task '...
0
votes
0answers
10 views

Gradle : Task release fails with compileJava error but build works fine

I'm working on a multi-modules project and trying to configure the release task to upload all of the modules archives on a Nexus at once, using the researchgate gradle-release plugin. I first ...
0
votes
0answers
22 views

How to use source code rather than bytecode for error 'Source Code Does not Match Bytecode'

I'm running IntelliJ 2019.1, imported java/gradle project. I made changes to code, rebuilt via Gradle tab. I relaunched application server in debug mode, began stepping through code. I'm now getting '...
0
votes
0answers
13 views

Why is Jenkins running different Gradle Build Tasks than Android Studio tasks?

I'm setting up a jenkins job for building an android app. The gradle build works just fine when I build it with Android Studio, but it doesn't when I invoke Gradle script with Jenkins. I noticed that ...
1
vote
1answer
28 views

How to give System property to my test via Kotiln Gradle and -D

When I run a test in Gradle I would like to pass some properties: ./gradlew test -DmyProperty=someValue So in my Spock test I will use to retrieve the value: def value = System.getProperty("...
0
votes
0answers
13 views

Find source of “NdkCompile is no longer supported”

We have the following warning message in Android Studio 3.4.1: WARNING: The following project options are deprecated and have been removed: android.useDeprecatedNdk NdkCompile is no longer ...
0
votes
0answers
12 views

How to include dependencies in custom annotation processor

I wrote a ProtoBufAnnotationProcessor using javapoet And I've added the dependency in build.gradle implementation group: 'com.squareup', name: 'javapoet', version: '1.11.1' When I testing this ...
0
votes
1answer
15 views

settings.gradle file did not showing in Intellij

I create a gradle project in IntelliJ, but settings.gradle file did not showing in intellij and when I want to create it this message shows: A file with name 'settings.gradle' already exists when ...
0
votes
0answers
18 views

buildPreBundle failed duplicate entry: META-INF/MANIFEST.MF

When I try to run my app on android < 8.0 I have this error java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF I looked for the error and added the following to my build.gradle in ...
-2
votes
0answers
16 views

How to sync osmdroid gradle compile(name:'osmbonuspack_v6.6.0', ext:'aar') [on hold]

I want to do osmdroid tutoruals (https://github.com/MKergall/osmbonuspack/wiki/Tutorial_1).Prerequisites are said there (https://github.com/MKergall/osmbonuspack/wiki/HowToInclude). I acted on them. ...
0
votes
1answer
16 views

How to include required appcompat libs after react-native upgrade?

I've updated to react-native 0.59.9 in order to support 64bit APK creation - https://medium.com/@andriidrozdov/reactnative-and-android-64-bit-new-google-play-market-rules-what-to-do-584b067d6f1a: "...
0
votes
0answers
7 views

gradle publish: multiple artifacts sharing one javadoc

gradle publish: multiple artifacts sharing one javadoc. root-project: module A (java library) module B (java library) module C (java library) Module A,B and C share one javadoc.jar. ...
0
votes
0answers
23 views

Gradle build: Exclude resources files from Spring Boot Jar file

I would like to exclude all config files from the jar file since they will be provided at the provisioning and having a different version in the build path may create some runtime issues. I am using ...
0
votes
0answers
25 views

Unity 2019 gradle build failed

I noticed that a lot of people have had this issue but I haven't been able to find a solution to it yet. The main other places I found with almost exactly the same error, and recently, is here When ...
0
votes
0answers
12 views

Unity gradle build - Error while merging dex archives

I'm trying to compile my project using "Build App Bundle (Google Play)" for the first time. However I am getting an error while merging dex archives. I believe it is due to some of my plugins are ...
0
votes
0answers
15 views

Gradle dsl method not found : 'storePassword()'

i get the source code of telegram messenger , when I hit Compile button , I'll get this error : ERROR: Gradle DSL method not found: 'storePassword()' Possible causes : The project 'Telegram-master' ...
0
votes
0answers
13 views

how to fix this error : Could not get resource recyclerview v7

i want to use recyclerview and card view and i dont know why i am gettin this error when i add libraries that i need here is my dependencies in build.gradle dependencies { implementation fileTree(...
0
votes
1answer
35 views

ERROR: Failed to resolve: com.android.support:appcompat-v7:29.0.0

I have installed android 3.4.1 and after that i was setting up my android sdk 29 after that got stop and shows this error. ERROR: Failed to resolve: com.android.support:appcompat-v7:29.0.0 ...
0
votes
0answers
11 views

gradle custom-task always run, even when not called (even indirectly)

The issue : All my custom task in my gradle project are always launch, even When I don't call them./don't depend them The context: I adding multiple custom task to my project this.tasks.add(...
0
votes
0answers
20 views

How to import own class in test - kotlin

I want to add some tests to my project, but I don't see my classes. Why? @RunWith(SpringRunner::class) @SpringBootTest @DirtiesContext @EmbeddedKafka(partitions = 1, topics = [...
0
votes
1answer
30 views

Conflict in version dependency in Android Gradle

I need to add dependency RESTMock, but I get this error in Gradle. project :app > com.github.andrzejchm.RESTMock:android:0.3.3 > com.github.andrzejchm.RESTMock:core:0.3.3 > com.squareup....
0
votes
0answers
13 views

Upload archive for a library with flavors with gradle

I'm developing an SDK with multiple libraries and an example app to show how to use it. The libraries are uploaded in a local maven repo that the app uses to import them. Everything works fine until I ...
0
votes
0answers
17 views

pass jvm flags to the gradle application

I want to add some flags to the JVM machine of my gradle application. My gradle version is 4.0.2. i know the basic solution where you can create the jar and pass it to the jar but i would like the ...
0
votes
0answers
21 views

ERROR regarding Google Play Services library in build.gradle for Android

I am facing some issue regarding the build. I am trying to integrate the google photos api in my app. So, I added the below dependency: implementation 'com.google.photos.library:google-photos-library-...
1
vote
0answers
16 views

Error when trying to run 'gradlew assembleRelease' in the Windows command line : jest-haste-map: Haste module naming collision

I am trying to generate a .apk file of my react native project with the 'gradlew assembleRelease' command. I'm using AWS Amplify, which is where the naming collision seems to be coming from. The ...
0
votes
0answers
19 views

Website2APK with Android

I'm relatively new to coding so I have a website that I wanted to convert to an APK to upload to Google Play, so as I'm relatively new I used the program website2apk, all that went OK so when I went ...
0
votes
0answers
25 views

How do I know what to set sourceCompatibility vs targetCompatibility to?

according to MoPub Docs I should add this to my gradle file, but my question is what do I pick for sourceCompatibility and target compatibility, it seems like target Compatibility has to be set to 1_8 ...
0
votes
1answer
18 views

Gradle error - Failed to resolve adding TomTom Maps SDK in Android Studio

I want to calculate distance between 2 points and show the distance and duration in a textview. For that I am using TomTom's Rounting API. When I am trying to add the dependancy to my project, my ...
0
votes
1answer
16 views

How can I get Android Studio to forget its location for CMake.exe?

I sent an Android Studio 3 project to another person for assistance. He uses different drive letters. Since I got the project back, whenever I try to clean the project, I get this error: * What ...
0
votes
0answers
11 views

Adding library to gradle tasks [duplicate]

I am creating a gradle task for my Android app and that task needs to make some api calls to get the data. For this, I need to use a library. So can you please tell me how to add a library for gradle ...
0
votes
0answers
11 views

Different flavors for module

In my project I have app with flavors 'dev' and 'prod' flavorDimensions 'default' productFlavors { dev {} prod {} } Also in the project there is module 'data' with flavors 'mock' and 'real' ...
0
votes
0answers
24 views

Why are Jenkins and Android Studio having different results on building an android project with gradle?

I am working on a jenkins build server for an android project that uses gradle as build-tool. The jenkins job checkouts the same git branch as my android studio project and tries to build but fails ...
0
votes
2answers
37 views

IntelliJ IDEA unable to resolve fine working gradle dependency

I'm currently working on a Kotlin project with Gradle (source code here). It's a Bukkit plugin which depends on a library I maintain (library source code here). When running ./gradlew assemble in a ...
0
votes
0answers
21 views

gradle error after updating and instant run error

I have an error with an instant run when I upgrade the android studio. I know if I turn it off it will work correctly but I want to use instant run ; I got this error org.gradle.execution....
1
vote
0answers
17 views

Why does IntelliJ start my Kotlin Gradle program despite of compilation errors

I have a standard JVM Kotlin project set up with IntelliJ IDEA. In the following image you can see my run configuration. Currently I am having compile errors (as by Build Project Ctrl + F9) However, ...
1
vote
2answers
92 views

New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version

I'm uising android studio 3.4.1 and my kotlin version is 1.3.31. I have a flutter app. When trying to add cloud_firestore to my app. I have a following issue. My android studio is kotlin version is ...
0
votes
1answer
21 views

How to let dependencies in modules have higher precedence over build.gradle in the top level repository

My project repository tree looks like the following: Project module1 module1.gradle module2 module2.gradle ... build.gradle Then in the build.gradle file there are some dependencies ...
0
votes
0answers
24 views

How to override gradle subproject config in module?

My modularized Android project makes use of subprojects in the root build.gradle in order to minimize the configuration needed in each submodule's build.gradle. For example I can use it to add our ...
-1
votes
0answers
15 views

I can not build without errors

I'm new with android and kotlin. My problem is that when I try to build my app using gradle and the ROOM documentation I always have construction errors. With that file gradle is the module app. I ...
0
votes
0answers
11 views

how to add aws-java-sdk-ecr plugin in gradle

I'm trying to push docker images to aws ecr using aws-java-sdk-ecr plugin. Created a class to get access token for ecr. But the plugin somehow not recognizing AmazonECR and ...
0
votes
0answers
13 views

Gradle Error when Build for Android (Unity 5)

I'm getting an error when build to android my Unity project. I'm using Gradle Build system. I tried change plugin name (it's name: unimgpicker) and the path, but nothing changed. I'm getting this ...
2
votes
0answers
29 views

NullPointerException when running kaptDebugKotlin

my gradle instance is not being able to compile a task on a determined Mac, this device is fresh so no old artefacts from Gradle or Kotlin are installed. The command to trigger it is ./gradlew app:...
0
votes
1answer
19 views

Gradle “gradle-wrapper.properties” dynamic/configurable distributionUrl

I have a gradle project, we use the gradlew.sh to build it. The same GIT project/branch is used by two different teams. The two teams have two different jenkins instances which contains the ...
1
vote
1answer
50 views

Lombok : constructor is undefined

I am using lombok in a spring project and building with gradle. All of the things were woking fine before. suddenly some errors have started coming. Error is "Constructor(Constructor name) is ...
0
votes
0answers
13 views

Received a failure event for test with unknown id '5.14'. Registered test ids: '[:my.project:test, 5.1]'

It seems that I've stumbled over an issue that is a bit hard to dissect. We've added a new JUnit test run listener to allow an extra test reporting service to be implemented. This was working fine in ...
0
votes
0answers
8 views

Tensorflow android sdk's buildToolsVersion and compileSdkVersion too high to use in my project?

look at the code: apply plugin: 'com.android.library' android { compileSdkVersion 28//too higher buildToolsVersion "28.0.2"// too higher, too. } Any app has to face so many android os ...
1
vote
2answers
43 views

What is Maven repository in Android Studio?

Can anyone explain clairly what is Maven repository in Android Studio ? I try to understand it but I don't find better explainations. Last time I needed to add some dependencies in my project and they ...