Force robolectric to use a java 8 or 9 binary.

This prevents it from using a later java binary if one is on the
path. This is necessary since these robolectric versions are using ASM
6.0 which doesn't support classfiles beyond v53 i.e. java 9 (and
robolectric doesn't work with ASM 7.0 until roblectric 4.0.x).

Test: make RunBluetoothRoboTests (uses common/robolectric/3.6.2) using an OpenJDK 11 toolchain via OVERRIDE_ANDROID_JAVA_HOME
Bug: 135178974
Bug: 135459087
Change-Id: Ib0c6c606f10f19fc010a45e76e1ff9576386db17
2 files changed