Pin tradefed dependencies to Java 11

Bug: 267831518
Test: TH
Change-Id: I370ff8b215609bf018fe81027e66cfad41493d97
diff --git a/Android.bp b/Android.bp
index 420723f..80ae4d7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12888,6 +12888,8 @@
     srcs: [
         "protos/perfetto/trace/perfetto_trace.proto",
     ],
+    // b/267831518: Pin tradefed and dependencies to Java 11.
+    java_version: "11",
 }
 
 java_library_host {
@@ -12898,6 +12900,8 @@
     srcs: [
         "protos/perfetto/metrics/perfetto_merged_metrics.proto",
     ],
+    // b/267831518: Pin tradefed and dependencies to Java 11.
+    java_version: "11",
 }
 
 // This sample target shows how to use the perfetto client API from within the