In case anyone else finds this thread -- these are the commands I had to execute after following the instructions Steve mentioned:
- Create a symlink named version.gradle to frameworks/testing/version.gradle
ln -s frameworks/testing/version.gradle version.gradle
- Create a symlink to your copy of adb and friends. This assumes that adb is on your path.
(BIN=out/host/darwin-x86 ; mkdir -p $BIN ; cd $BIN ; ln -s $(dirname $(which adb)) bin)
You can now run the `./gradlew connectedAndroidTest` command.
BTW, since it's not entirely obvious -- if you want to create distributable JARs the command is
./gradlew clean createReleaseJarWithDeps