Posts

Showing posts from July, 2019

Wrong java version. 1.8 or 9 is required

If you are getting below error while running cts-tradefed or vts-tradefedor gts-tradefed . Use below steps to resole this error: 1)Check java --version It gave below output: java --version java 12.0.1 2019-04-16 Java(TM) SE Runtime Environment (build 12.0.1+12) Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing) 2)Open cts-tradefed or vts-tradefedor gts-tradefed and edit as below: change below line  JAVA_VERSION=$(java -version 2>&1 | head -n 1 | grep 'version [ "]\(1\.8\|9\).*[ "]') to this # check java version JAVA_VERSION=$(java -version 2>&1 | head -n 1 | grep 'version [ "]\(12\.0\.1\|9\).*[ "]') 3)Now try to execute ./cts-tradefed it should execute without any error.