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

Ansible gets error running command, No error if I enter it manually [duplicate]

I'm trying to run a Gradle project with Ansible on a Linux server. If I go into the server and manually enter './gradlew clean deploy' I get no issues. When I run it with Ansible, I'm getting a '...
0
votes
1answer
6 views

How connect my exist gradle with react native project?

when i download gradle file from here then where put this zip file? Tried to put in .gradle folder and then type react-native run-android so again download gradle file from above website but i ...
0
votes
0answers
4 views

How to investigate why gradle build is using cached resource ids

If have a gradle (5.4.1) project (plugin 3.4.1) with two flavors (main and other) using the same sourceSets. I've come across an issue when renaming a resource id (in a layout XML). Here are the ...
0
votes
0answers
11 views

Android Resource Linking Failure

I am trying to write an Android app and currently, anytime I try to debug it on a device or emulator, the app will not build and I get an error stating "Android resource linking failed" along with ...
0
votes
0answers
13 views

Where to put JAXB dependency for compiling Android Databinding on Java 11?

I am using Android Data Binding, and while things were simple it was working very well. However, once I added a BindingAdapter annotation, my project stopped building in Android Studio with an error ...
0
votes
0answers
14 views

Android NDK - C++ library cannot find atomic

I am working with cocos2dx and OBOE library in my android project. When I import C++ files from OBOE library some #inclue libraries are not found. How to fix it? I have tried with setting cppFlags -...
0
votes
1answer
20 views

app works fine on emulator but app can't be installed on mobile via apk package

I wrote an application for android 5.1.1 using android studio 3.6 canary 3. Mobile is samsung xcover 3 (sm-g388f) with 5.1.1 android stock rom api22 Running on emulator 5.1.1 api 22 doesnt show any ...
0
votes
0answers
5 views

Intellij gradle project: autodownload sources and javadoc from maven repository

Intellij gradle project: how to autodownload sources and javadoc from maven repository? For maven project, there is a checkbox for that under settings > build, execute, deployement > Maven &...
0
votes
0answers
11 views

Kotlin Gradle DSL to exclude acceptance test when running unit tests

I using the gradle kotlin DSL and I need to exclude my acceptance tests when running build or test. Currently I have tasks.withType<Test> { exclude("*acceptance*") } Which doesn't work. ...
0
votes
0answers
7 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, so developers using android can use the dependency. However, I want to learn how to create a simple java jar file with ...
0
votes
0answers
34 views

How to make Gradle compile C++ code as a shared library and make it accessible from Kotlin/Java classes? [on hold]

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
24 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
14 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
13 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
15 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 ...
2
votes
1answer
31 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
13 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
17 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
17 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
25 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
31 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
13 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
37 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
22 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
17 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
20 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
19 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
12 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
25 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
38 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
97 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
22 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 ...