Questions tagged [build.gradle]

The file build.gradle describes the default actions and tasks launched by 'gradle' command in the appropriate folder.

Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or indeed anything else.

Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build. Powered by a Groovy DSL and packed with innovation, Gradle provides a declarative way to describe all kinds of builds through sensible defaults. Gradle is quickly becoming the build system of choice for many open source projects, leading edge enterprises and legacy automation challenges.

Official Gradle website: https://gradle.org/

7483 questions
3
votes
5 answers

Error build.gradle with com.google.android.gms:play-services-maps:9.4.0

In my app I have these dependencies: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.package_app.name" minSdkVersion 15 …
LorenzoBerti
  • 5,328
  • 6
  • 37
  • 72
3
votes
1 answer

Gradle build error: org.gradle.buildexceptionreporter Gradle version used 2.14.1

Error:11:25:12.400 [ERROR] [org.gradle.BuildExceptionReporter] 11:25:12.401 [ERROR] [org.gradle.BuildExceptionReporter] **FAILURE: Build failed with an exception.** 11:25:12.401 [ERROR] [org.gradle.BuildExceptionReporter] 11:25:12.401 [ERROR]…
Bhuvanesh
  • 49
  • 1
  • 7
3
votes
4 answers

Can't create folder "debug" Android studio

Hi am presently trying to build my project in android but i keep getting this Error:Execution failed for task ':app:transformClassesWithDexForDebug'. java.io.IOException: Could not delete folder…
Henry
  • 81
  • 2
  • 11
3
votes
0 answers

Gradle module package not found error

I've 3 modules in my project: Lib - apply plugin: 'com.android.library' Proj A - apply plugin: 'com.android.application' Proj B - apply plugin: 'com.android.application' Both project inport the lib in their build.gradle file: compile project(path:…
GuilhE
  • 10,723
  • 13
  • 63
  • 94
3
votes
0 answers

Paypal is not working after removing IO card

I added paypal in my application,previously it was working fine,but then i noticed that my apk size become larger, so i found one solution for that i added this to my gradle compile('com.paypal.sdk:paypal-android-sdk:2.12.3') { exclude…
Aditya Vyas-Lakhan
  • 12,393
  • 15
  • 55
  • 92
3
votes
2 answers

Gradle sync failed: failed to find Build Tools revision 21.1.2

I have installed Android 5.0 sdk 21 and have checked all the possible solutions but none of them worked for my case. Im receiving the same error Gradle sync failed: failed to find Build Tools revision 21.1.2 Consult IDE log for more details
art
  • 329
  • 1
  • 5
  • 21
3
votes
1 answer

Integrating Gradle with Jira

Is there a way to integrate gradle with Jira ? I use Jira cloud service and I know they have rest based API to support but I want to know weather there is a gradle plugin with good documentation to connect with Jira?
3
votes
2 answers

Import swagger-codegen project into existing Android project

Im trying to integrate a "module"-project generated by swagger-codegen, into my Android project. Haven't worked that much with gradle before and the swagger-codegen creates a quite messy build.gradle from my point of view. I have a hard time finding…
3
votes
1 answer

How to add TIKA into build.gradle using android studio?

I'm trying to put Apache Tika into my project. But it returns error, unfortunately, I couldn't solve this problem by myself. How can I put Apache Tika using android studio? Error:(27, 0) Gradle DSL method not found: 'runtime()' Possible…
Isaac
  • 31
  • 6
3
votes
2 answers

FLAVOR: run from Android Studio fails - run from device works

I'm trying to have same activity name in different flavors, and install the right one for each flavor. build.gradle : android { .... buildscript { productFlavors { flavor1 { applicationId…
3
votes
1 answer

Handling per buildtype/flavor configuration in custom gradle plugin

When writing a custom Gradle plugin, how is it possible to access the extension properties defined per buildtype/flavor in the consuming build.gradle? I have the following extension class - TestExtension { String name; String address; …
padlar
  • 365
  • 1
  • 4
  • 13
3
votes
1 answer

What is applicationVariant.outputs?

Android build.gradle directives often have parts like applicationVariants.all { variant -> variant.outputs.each { output -> // do something to output } } The variant.outputs is puzzling. It seems to work, but the outputs property…
serv-inc
  • 29,557
  • 9
  • 128
  • 146
3
votes
1 answer

Gradle get version of the subproject

So I am working on a big gradle project with many subprojects... Now, in the main build script subprojects section, i want to get the version of every specific subproject... When in this section i try doing project.name i get the name of the…
Aksim Elnik
  • 405
  • 3
  • 23
3
votes
1 answer

Gradle doesn't see my swing components

I've created a simple gui for my program using Intellij GUI Designer. Everything works fine however when I build gradle jar and try to run it I get NullPointerException (It creates Frame but doesn't see components). I was having a problem…
JohnnyGat
  • 325
  • 2
  • 10
3
votes
4 answers

Duplicated "IInAppBillingService.aidl" File - Library + App

since almost 2 months I'm searching for a solution for the following Problem. I implemented a library in my app which also includes the IInAppBillingService.aidl file and the other parts of the In App Billing Library from Google. When I'm trying to…
1 2 3
99
100