Top "Build.gradle" questions

The file build.

Error:Execution failed for task ':ProjectName:mergeDebugResources'. > Crunching Cruncher *some file* failed, see logs

I have this error when trying to make a module of a project apply plugin: 'com.android.library' android { compileSdkVersion 17 …

android android-studio android-gradle-plugin build.gradle
Copy existing project with a new name in Android Studio

I would like to copy my Android project and create a new project from the same files just with a …

android-studio gradle android-gradle-plugin build.gradle
Execution failed for task ':app:compileDebugAidl': aidl is missing

I installed Android Studio on my computer. I created a new project but that got me the error below. What …

android android-studio android-gradle-plugin build.gradle aidl
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve

Newly installed Android studio 3.1.3 is giving strange dependencies error when making a new project and compiling for very first time. …

android android-gradle-plugin build.gradle android-studio-3.0
Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.0) and test app (23.0.1) differ

When building I get the following error: Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.0) and test …

android gradle android-gradle-plugin build.gradle android-espresso
Setting up Gradle for api 26 (Android)

Since I have upgraded my Nexus 5x to Android O DP3 I am not able to test my applications. I …

android gradle build.gradle android-support-library android-8.0-oreo
Error:Conflict with dependency 'com.google.code.findbugs:jsr305'

I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. This is …

android-studio gradle google-cloud-messaging android-gradle-plugin build.gradle
How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M?

As mentioned here, Android M will not support the Apache HTTP API. The docs state to: use the HttpURLConnection class …

android apache httpclient build.gradle android-6.0-marshmallow
android : Error converting byte to dex

So, I am getting the following error while running the project after upgrading build.gradle (Project) from dependencies { classpath 'com.…

android build.gradle
How to set an environment variable from a Gradle build?

I'm trying to set an environment variable from my Gradle build. I'm on MacOS X (El Capitan). The command is "…

gradle environment-variables build.gradle