I\'m trying to add native debugging to a project that is an Android Studio NDK project. In the past I just used gradle to kick off a shell script, which built the NDK lib.
A general way to do the include you're looking for is this in the dependencies. compile fileTree(dir: 'libs', include: ['*.jar'])
However, I'm not certain that will solve this particular problem. I've always had success with putting the jar in the libs directory at the top of the directory structure. If you need to have the jar in a different location, then this works for me:
repositories {
flatDir {
dirs ''
}
}
model { ... }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}