Skip to content

Content Tagged "gradle"

Page 1 of 1

Content Tagged "gradle"

Set Different Gradle Configurations

September 19, 2016Categories: IT, Tutorial
TL;DR : create a global gradle.properties file (in <HOME>/.gradle or GRADLE_USER_HOME if defined). Place there the system specific configuration. The other day I had the unpleasant surprise that Android Studio replicated my proxy settings into gradle.properties and got committed to Git…

Fix Gradle Error: UNEXPECTED TOP-LEVEL EXCEPTION

February 10, 2016Category: Software
Today I got the lovely UNEXPECTED TOP-LEVEL EXCEPTION from the dexer in android. Looking on the net yielded several causes and resolutions. Note : I'm using Gradle 2.10, Android Studio 2.0.0-beta2 Caching Apparently, sometimes Gradle is shooting itself in the foot with the caching. The first thing…

Move Gradle Home

June 20, 2015Category: Software
I'm having some space constraints and I need to move as much as possible to a non-backed-up place. Gradle home (the .gradle directory) has 2.23GB on my computer. A lot, so it must go. The procedure is simple . Just create an environment variable named GRADLE_USER_HOME: Now all your gradle stuff…

Gradle(w) and Proxy Authentication

June 18, 2015Category: Software
The recent updates in Android Studio eliminate the possibility of passing JVM arguments to gradle. That's quite unfortunate because I quite liked my solution and now I was getting a (not) nice Connection refused message... So I had to find a different solution. Environment Variable As always…

Android - More Speed up Building with Gradle

May 20, 2015Category: Software
In my previous post I described one thing you can easily do to improve the build speed, namely enabling the gradle daemon . In the meantime, things improved quite a bit: Gradle 2.4 (at the moment of writing) has better speed You can run things in parallel now like other build tools (e.g. make…

Split a Gradle Build File

November 30, 2014Category: Software
TL;DR: If you can, use ext {} with constants (hash). You can do call pointer things too! In the past days I've been trying to add some functionality to my Gradle build file so the version would be determined from the git tag. I've found this excellent entry showing how to get the actual string. My…

Android java.lang.VerifyError and Boilerplate code

August 19, 2014Category: Software
TL;DR: Change the java version compatibility in your gradle file (see below) or remove Hugo references from your e.g. "debug" code in Velcro. The other day I discovered a bunch of template-based application generators for android. While they are very interesting and apply some of the best…

Android - Speed up Building with Android Studio and Gradle

August 5, 2014Category: Software
I've noticed that building a small application with gradle is slow (in my case because I'm only starting with Android development and I compile stuff way too often). One of the things I found online was a way to speed up building by using the gradle daemon instead. From daemon's documentation…

Gradle and Proxy Authentication in Android Studio

July 28, 2014Category: Software
Update : This is obsolete as Android Studio is going to eliminate JVM arguments for gradle. See this post for a more future-proof approach . The other day I did an exercise to install Android Studio ("AS" henceforth) (0.8.4 at the moment of writing) and create a project with gradle in an…

All tags