Questions tagged [build.gradle]

The file build.gradle describes in the Groovy language the default actions and tasks launched by the '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/

9056 questions
4
votes
2 answers

Upload failed: Your Instant App APKs should contain at least one base APK

I need to prepare an Alpha testing for an Instant App and It run like a charm on Android Studio but It is failing when I try to upload it to the PlayStore, saying: Upload failed Your Instant App APKs should contain at least one base APK. The app…
4
votes
2 answers

Gradle compiler output when building C/C++ code

I'm building C/C++ code with gradle under Linux (gcc) and Windows (VS10) like it's described in Building native software documentation of gradle. The build process is fine and I can start my application. If errors occur during the build process you…
Andre Kampling
  • 5,476
  • 2
  • 20
  • 47
4
votes
1 answer

Syntax highlight for Kotlin-script files in Idea

I migrated my Gradle project config for Kotlin-script usage: now I have both build.gradle and build.gradle.kts and can switch between them configuring settings.gradle: project(':myProject').buildFileName='build.gradle.kts' The issue is kts…
awfun
  • 2,316
  • 4
  • 31
  • 52
4
votes
2 answers

Install two version of the same app, in the same device

I need to install two different version of the same app on my device to do some test. I know that it's possible changing the package but also, i read that it's possible to do it changing Manifest and Gradle with the ApplicationID. How can I do…
Paul
  • 511
  • 1
  • 5
  • 7
4
votes
2 answers

Build type is always "Release"

I am obtaining that BuildConfig.BUILD_TYPE returns always "release", even if I am compiling it in debug mode. I include here a part of my build.gradle: buildTypes { debug { debuggable true minifyEnabled false …
Jaume Colom
  • 1,701
  • 3
  • 11
  • 6
4
votes
0 answers

Gradle: replace token in index.html

I have a gradle project. I want to add versioning to my index.html from gradle.properties by replacing @version@ token. I have tried the following: build.properties version=1.0.12 // i want this version projectJdk=Oracle JDK 8 build.gradle import…
DIMAKATSO BOPAPE
  • 153
  • 1
  • 2
  • 11
4
votes
0 answers

gradle NO-SOURCE message on linux

I copied a gradle build project that builds fine on my local windows to my Linux build sever but it fails to see any source when run in Linux and prints NO-SOURCE, what am i missing here? :compileJava NO-SOURCE :processResources NO-SOURCE :classes…
Mark1234
  • 589
  • 2
  • 8
  • 24
4
votes
1 answer

gradle task to zip multiple directories independently

I am trying to create a task that looks inside a folder and zips all the folders within that folder to some output folder. Initial state: Folder1 -> project1 ->code //some more files within project1 -> project2 ->code Target…
Sammy
  • 51
  • 1
  • 4
4
votes
10 answers

Gradle sync failed: connection time out: consult IDE log for more details

I just installed Android studio 2.3.1, but after starting it is telling me "Grade sync failed: connection time out: connect consult IDE log for more details". Pls I don't know what to do.
4
votes
3 answers

Tabitem binding in android studio

Hy everybody ! :) I need a custom layout in the tabbed activity (or fragment) tabitem. First-> I defined this layout for the tabitem: tab_item_layout.xml
4
votes
5 answers

Can't generate signed APK in Android Studio, 'java.io.IOException'

I have a problem with generating signed APK in Android Studio. It was working fine few days ago, I dont know what went wrong. I'm getting this error for any project I try to fgenerate signed APK of: Warning:Exception while processing task…
Abhi
  • 2,115
  • 2
  • 18
  • 29
4
votes
1 answer

Spoon JAR for local testing

I'm trying to test making changes to the Spoon source (trying to learn how it all works) but can't figure out how to build the final jar (with dependencies similar to the one available from the site) that we can then use to run independently. I…
Bootstrapper
  • 1,089
  • 3
  • 14
  • 33
4
votes
0 answers

java.lang.NoSuchMethodError: No static method zzb(Ljava/lang/Object;Ljava/lang/Object;)

I'm stuck in my first real-time firebase app. :( I was making a simple registration app using firebase and but I found a runtime error . please remember I'm using android-studio 2.3. Note- I've included google-services.json also in the required…
Shivam Sharma
  • 1,015
  • 11
  • 19
4
votes
2 answers

Build gradle failed: can not identify path JDK, CreateProcess error=206, The filename or extension is too long

Im using Gradle to build Spring Boot project. I have added environment variable for JDK Java. And then I set this JDK path in gradle.properties. When I perform to build with: gradle myProject:bootRun, I received an exception of JDK path wrong. My…
Khanh Luong Van
  • 476
  • 3
  • 14
  • 31
4
votes
1 answer

fragment back stack issue in build version 25.2.0

I am using fragments in my project, I am facing one issue in recent android build version 25.2.0 that is clearing fragments not working properly. Let me explain about my issue. Initially I have added DbFragmentView() fragment class without adding it…
MathankumarK
  • 2,717
  • 1
  • 17
  • 34
1 2 3
99
100