Top "Build.gradle" questions

The file build.

How to run JUnit tests with Gradle?

Currently I have the following build.gradle file: apply plugin: 'java' sourceSets { main { java { srcDir 'src/model' } } } dependencies { compile files(…

java gradle junit4 build.gradle
Could not find method android() for arguments

I've been trying to import a project to Android Studio and this is where I am stuck, there is a …

android android-gradle-plugin build.gradle android-studio-2.0 android-studio-import
Adding local .aar files to Gradle build using "flatDirs" is not working

I'm aware of this question: Adding local .aar files to my gradle build but the solution does not work for …

android android-studio android-gradle-plugin build.gradle aar
Gradle - Could not find or load main class

I'm trying to run a very simple project using Gradle and running into the following error when using the gradlew …

java spring gradle build.gradle
Add resources, config files to your jar using gradle

How do I add config files or any other resources into my jar using gradle? My project structure: src/main/…

gradle build.gradle
Android Studio - Failed to notify project evaluation listener error

Following is the build.gradle code in Android Studio apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.…

android android-studio build.gradle
Java finished with non-zero exit value 2 - Android Gradle

I'm getting this error executing my Android app (I cleaned it and then built it, but the error is still …

android asp.net-web-api gradle build.gradle
Android dependency has different version for the compile and runtime

After updating Android Studio from Canary 3 to Canary 4, the following error is thrown at the build time. Android dependency 'com.…

android android-gradle-plugin build.gradle
Gradle Error:Execution failed for task ':app:processDebugGoogleServices'

I am following this link to integrate Google sign-in in my android app.https://developers.google.com/identity/sign-in/android/…

android gradle build.gradle