You'll need to follow these additional steps:
Download td_collator_so.jar into the newly created libs directory.
Use the following dependencies to the top-level of the build.gradle file (not under the buildscript section).
dependencies {
...
compile fileTree(dir: 'libs', include: 'td_collator_so.jar') // hack to add .so objects (bit.ly/17pUlJ1)
...
}
(This is from Getting Started in the documentation)