How-to articles, tricks, and solutions about GRADLE

Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio

Execution failed for task :app:compileDebugJavaWithJavac is an error message that can occur when you are trying to build an Android project in Android Studio.

Gradle build without tests

To build a Gradle project without running the tests, you can use the assemble task instead of the build task.

How do I tell Gradle to use specific JDK version?

To specify the JDK version that Gradle should use, you can include the property in the file in the root project directory.

How to add local .jar file dependency to build.gradle file?

To add a local JAR file dependency to a build.gradle file, you can use the compile fileTree() method and specify the directory where the JAR file is located.