

It’s kind of like driving down the road and constantly hitting speed bump after speed bump. The “Configure your build” section on the Android official website is really terrible and I’m not surprised you didn’t know about the Gradle Build Scan if that is what you rely on.Īnd that’s perhaps the best part of using the Gradle Build Scan: it provides direct links to the relevant parts of the official documentation from Gradle which are more of the Friendly Manual kind.Slow build speed is a huge momentum buster. Some would answer: “Because you didn’t RTFM?”.īut what I find interesting about RTFM is that it has two, quite different meanings: Read The Fucking Manual and Read The Friendly Manual. Read the docs at This is awesome! Why didn’t I know this before? The Build Scan user manual explains among other things how to publish the Build Scans on a company server buildScan In an enterprise environment, sharing possibly sensitive data with Gradle and everyone else can be an issue. Read along with its companion manual Using in an enterprise environment The good news is that there is a good, simple answer to this! The solution: a Gradle Build-Scan URLĮvery time you need to understand why your build is failing and ask for help, re-run the Gradle task that was failing with -scan. Those context-less conversations are infuriating. I don’t understand what it does, but it works for me. (answer1) Copy/paste this Groovy snippet somewhere in your builds. (original_post) Hello, my build is not working/slow, please advise! (original_post) Here are 2.000 probably irrelevant lines that I copy/pasted from my build. I am sad when I read all those Medium posts.

I am sad when I read issues in the Android issue tracker. I am sad when I look at StackOverflow questions tagged with android+gradle. Those context-free “bug reports” and tips are everywhere. Yet somehow we forget it when it comes to our builds. Which version of the app? On which smartphone? Do you have reproducing steps? This is Reporting 101. Is that a crash? Do you have a stacktrace? Or is something not working as expected? And why? My wild guess is that you would react along those lines: One customer has reported that the application is not working since yesterday.


A notification pop-up:Īpplication not working Hello dear developer. Let’s imagine you arrive to work in the morning. So please pay attention if you are an Android developer or are otherwise using Gradle! The problem: lost context There is one very sad problem in the Android world that has a good and simple solution.
