There's a standard .jar in an original maven repository, try this:
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.code.gson:gson:2.2.4'
}
But, If you really want to take that .jar from a local directory,
Add the following syntax next to your module Gradle (Not the app Gradle file):
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
compile name: 'gson-2.2.4'
}