Questions tagged [build.gradle]
The file build.gradle describes the default actions and tasks launched by 'gradle' command in the appropriate folder.
8,089
questions
-1
votes
0
answers
7
views
How to resolve Failed to apply plugin 'com.github.dcendents.android-maven in Android Studio
I've been trying to bring a project upto date and now I'm getting this error: Failed to apply plugin 'com.github.dcendents.android-maven
I've looked around and modified my gradle files but still not ...
0
votes
0
answers
5
views
how to fix Failed to apply plugin class 'org.gradle.language.base.plugins.LifecycleBasePlugin'
I am new to android studio but I build two simple AS projects already now I'm building a flutter project for a school assignment, this was the first time I experience it. If you could help me it help ...
0
votes
0
answers
9
views
error: package com.mobile.testluck.spin does not exist import com.mobile.testluck.spin.PieView;
I am trying to build an app in android studio and I am encountering an error which has only started to come up recently. As far as I am aware I have not changed any settings or amended any system ...
0
votes
0
answers
12
views
How to use your forked version of plugin in Gradle
I'm using gradle plugin as
plugins {
id 'net.ltgt.errorprone' version '2.0.2' apply false
}
Now, I forked net.ltgt.errorprone on Github, did some changes in branch changes. How can I tell Gradle ...
0
votes
1
answer
12
views
Is it possible to run commandLine in gradle with bash -c?
I have a task in a build.gradle file, in which I'd like to run this command:
(export ENV_VAR=/my/path ; /path/to/build.sh)
I tried running this in gradle:
task myTask {
doLast {
exec {
...
0
votes
0
answers
11
views
Gradle DSL support for "latest.integration" version
I'm developing a custom plugin for gradle.
There is need to use latest version of plugin and it's already works with legacy gradle plugin application:
//build.gradle
buildscript {
...
...
0
votes
1
answer
29
views
Run same gradle Task to generate java class from xsd using plugin xjc with different parameters
I have two gradle task genJaxb and genJaxb2 to generate java code from xsd. They both do the same thing only difference is they generate stub from different files. Is there any to have one task with ...
0
votes
0
answers
12
views
Creating a Gradle build file for React App
I am trying to set up a starter React project. I have used a create-react-app to create a starter app. I linked it to our Firebase account, and made a simple page to display stored dummy data.
We ...
0
votes
1
answer
20
views
Unit tests failed after converting gradle to kotlin dsl
Converted my gradle file to a kts to use kotlin dsl. Im not sure how to convert these two sections:
sourceSets {
test.resources.srcDirs += 'src/test/res'
}
testOptions {
unitTests.all {
...
0
votes
1
answer
17
views
What's the difference between libs and implementation in Gradle?
I have already seen in some project, that in some of them is using libs and libs group: instead of implementation or deprecated compile. After local switch to implementation everything looks fine and ...
0
votes
0
answers
14
views
Run old android app in android studio error
I have a github code which is from 2018, https://github.com/puzannshakya/Currency-Detection
I am trying to run this app, but it is giving me errors like gradle should be 4.1 and higher, even after ...
-1
votes
0
answers
15
views
how to get build.gradle from an apk without source code
I have converted an app to a jar file using dex2jar and gotten all the source code, but I want build.gradle to know which implementations are used in that app and the minimum SDK and maximum SDK ...
0
votes
0
answers
24
views
Flutter - cannot run android app (build failed with exception)
I'm unable to run newly created flutter projects on any android device. I've tried a fresh install of the android sdk but still getting the same error message. I've tried the same process on a ...
0
votes
1
answer
24
views
How to declare dependencies for a specific Jar Maven publication in a Gradle project?
I'm trying to publish a client library for my java API.
I declared a source subset in gradle for it, including domain classes and the client.
Now I'm trying to declare spring-webflux as a dependency ...
0
votes
1
answer
21
views
Run two different sonar configurations in parallel with jenkins. Not sure how to create build.gradle file with two sonar configurations?
I am working on a project with multiple modules, lets say : bigModule, smallModuleA, smallModuleB and smallModuleC. And I have a build.gradle file which has sonar configuration that i change when i ...