Questions tagged [android-gradle-plugin]

The Android Gradle Plugin is Android's standard build system. It is used as backing-build-system by Android Studio.

This tag is for questions about the Android Gradle plugin. The Android Gradle plugin was introduced at Google IO in 2013 and replace the legacy ant-based build system.

Resources

12908 questions
9
votes
1 answer

Execution failed for task ':bintrayUpload'. > Could not create version '1.1-Final TestApp': HTTP/1.1 400 Bad Request

I am working on one library project in android. I want to upload my library to the JCenter. I have created bintray account etc & followed all steps which are mentioned here. I did below changes in my application module & library module. Application…
9
votes
1 answer

Cache It is currently in use by another Gradle instance

I don't understand why this is happening. Gradle sync failed: Timeout waiting to lock buildscript class cache for build file '/Users/user/Documents/android-studio-pubble/App/build.gradle'…
Gabriela Radu
  • 757
  • 2
  • 12
  • 33
9
votes
5 answers

Appcompat v7 isn't pulled into project

I inherited a project which uses appcompat-v7:20.0.0 I'm not able to build the project, because it seems that gradle doesn't include the appcompat library while synching/building. My dependencies in the build.gradle: dependencies { compile…
9
votes
1 answer

Ionic Android build stopped working

My Ionic/Cordova app has all of a sudden stopped building on Android after updating the Ionic and Cordova CLI. I've spent the last 2 days searching Google for a solution but I couldn't find anything that has helped. I'm assuming it's something to do…
9
votes
4 answers

External AndroidManifest.xml doesn't appear under project view pane

I have been developing an Android project using Android Studio and Gradle. My project's AndroidManifest.xml is located under an external folder. I'm pointing to it using the following code in the build.gradle file: sourceSets { main { …
9
votes
2 answers

Android NDK - multlib support using gradle

My question is directed towards native Android development for 64bit Android systems. I am looking for a way to configure the support of 32bit compiled native libraries at a 64bit Android system using the gradle build system. The libraries the…
9
votes
1 answer

Android - gradle.properties windows

I need to put some signing variables into gradle and in mac you can put it in HOME/.gradle/gradle.properties but what about windows?
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162
9
votes
5 answers

Android studio java.exe finished with non-zero exit value 3

I have pass through non-zero exit value 1,2, related to multidex issue, but now I am getting non-zero exit value 3. Studio Message : Information:Gradle: Executing tasks: [:emoticons_lib_proj:assembleDebug,…
Abdul Wahab
  • 819
  • 1
  • 7
  • 18
9
votes
5 answers

android project: process finished with non-zero exit value 2

I'm unable to compile my android project. Google and other SO posts tell me it (probably) has something to do with dependencies, but I can't find where. Here's the error: Error:Gradle: Execution failed for task ':app:dexDebug'. >…
HaruhiNishikawa
  • 155
  • 1
  • 1
  • 8
9
votes
1 answer

build.gradle is secured from decompilation?

It is very easy to decompile the code and code is not secured even with the Proguard. What I required is to secure "key" in the app. Is build.gradle secured ? can it be decompiled ? buildConfigField "String", "Key", "\"1234567890\"" Update as per…
9
votes
0 answers

Robolectric test runs in Android Studio, but not by gradle in the console

I recently updated a few libraries in my gradle file, and as a result, some (but not all) of my unit tests fail when I run them in the console by "./gradlew clean test". However, all my tests pass successfully when I run them inside Android…
happyhuman
  • 1,541
  • 1
  • 16
  • 30
9
votes
1 answer

Can Powermockito be used with Android Studio 1.2

I am using Android Studio 1.2 and the com.android.tools.build:gradle:1.2.2 plugin. Attempt 1 I include the following in my app/build.gradle: androidTestCompile ('com.google.dexmaker:dexmaker-mockito:1.2') androidTestCompile…
9
votes
4 answers

Findbugs android gradle plugin

I have an android project. I want to introduce findbugs in my project as a gradle plugin. I tried to edit the project's build.gradle as below. buildscript { repositories { mavenCentral() maven { url…
9
votes
2 answers

Gradle complains: "TaskSelectionException: Task 'generateDebugTestSources' not found in project"

Updating Android Studio from 1.1.0 to 1.2 RC0 broke my (previously flawlessly running) project. The error message is: TaskSelectionException: Task 'generateDebugTestSources' not found in project ':libraries:android-simple-facebook:Simple Facebook'.…
9
votes
3 answers

Gradle duplicate files during packing - messages.properties of JodaTime

I replaced Java's Date classes with Joda's DateTime classes recently in my Android app. I use Jackson for parsing json. I added the following lines to my build.gradle file compile com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.3 compile…
x-treme
  • 1,606
  • 2
  • 21
  • 39