Here is how I got it going specifically for the admob sdk jar file:
jar
file into the libs folder.jar
file and select Add Library
now the jar file is a library lets add it to the compile pathbuild.gradle
file (note there are two build.gradle
files at least, don't use the root one use the one in your project scope).Find the dependencies section (for me i was trying to the admob -GoogleAdMobAdsSdk jar file) e.g.
dependencies {
compile files('libs/android-support-v4.jar','libs/GoogleAdMobAdsSdk-6.3.1.jar')
}
Last go into settings.gradle
and ensure it looks something like this:
include ':yourproject', ':yourproject:libs:GoogleAdMobAdsSdk-6.3.1'