How to determine the version of Gradle?

Option 1- From Studio In Android Studio, go to File > Project Structure. Then select the “project” tab on the left. Your Gradle version will be displayed here. Option 2- gradle-wrapper.properties If you are using the Gradle wrapper, then your project will have a gradle/wrapper/gradle-wrapper.properties folder. This file should contain a line like this: This … Read more

“Gradle Version 2.10 is required.” Error

You need to change File > Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path On Mac OS, change the path in Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this

Cannot resolve symbol ‘AppCompatActivity’

A little addition to other answers here, for anyone having the same error while using the right lib version and the right class. When I upgraded to In which ActionBarActivity is deprecated and empty and AppCompatActivty is the way to go, due to some glitch in Android Studio, It didn’t quite pick up on version change. i.e. Even though … Read more

Cannot resolve symbol ‘AppCompatActivity’

A little addition to other answers here, for anyone having the same error while using the right lib version and the right class. When I upgraded to In which ActionBarActivity is deprecated and empty and AppCompatActivty is the way to go, due to some glitch in Android Studio, It didn’t quite pick up on version … Read more

How can my Gradle build initialize class org.codehaus.groovy.classgen.Verifier?

I’ve been facing the exactly same issue after installing the latest Kotlin Plugin yesterday. This is what resolved the issue for me: I had to change the version of Gradle used as the build tool to (again) use the version installed on my local system. It seems to me that installing the update has caused … Read more

Expiring Daemon because JVM heap space is exhausted

This can be fixed by increasing the configured max heap size for the project. Through IDE: Add the below lines into the gradle.properties file. Below memory size can be configured based on the RAM availability Through GUI: In the Settings, search for ‘Memory Settings’ and increase the IDE max heap size and Daemon max heap … Read more

‘dependencies’ cannot be applied to ‘(groovy.lang.Closure)’

Based on what Android Studio generates, you need to have a top-level project file build.gradle, and another for your app build.gradle. Top-level: Application level: But even without all that, your problem is that you have a dependencies within your android plugin config. remove that empty dependencies block. EDIT: I also started getting this error with … Read more

How to run only one unit test class using Gradle

To run a single test class Airborn’s answer is good. With using some command line options, which found here, you can simply do something like this. From version 1.10 of gradle it supports selecting tests, using a test filter. For example, For multi-flavor environments (a common use-case for Android), check this answer, as the –tests argument will be unsupported and … Read more