Gradle Building gets stuck in completing tasks: [: app: generateDebugSources ,: app: generateDebugAndroidTestSources]

I am running Android Studio 1.3.2 on Ubuntu 14.04, with built-in tools version 23.0.0.

Whenever I load a project, after indexing is complete, Gradle shows Gradle Build Running and no matter how long I leave it, it does not show progress or errors.

I tried these solutions:

  • How to fix Android Studio installation for completing Gradle tasks?
  • Gradle stuck in "build" or "assembleDebug" when using 64-bit or 32-bit version of Android Studio
  • Gradle Build splash screen when creating debug sources

But they do not work for me.

Are there any other solutions? Help would be greatly appreciated

+7
android android-studio gradle
source share
3 answers

I managed to solve the problem after a lot of trial and error.

  • Firstly, I changed the build-tools version to 22.0.1. I know this is an outdated version, but it worked for me.
  • After that, the Gradle command completed with aapt error, for which I installed the following.

sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1

They solved the problem for me.

+9
source share

sudo apt-get install lib32z1

This dependency was missing in my Ubuntu .. Fixed after installing it

+1
source share

I had a similar problem. Changing the buildToolsVersion file in the build gradle file worked for me.

0
source share

All Articles