2nd attempt to remove legacy-test from TARGET_DEFAULT_JAVA_LIBRARIES

Bug: 30188076
Test: make checkbuild

(cherry picked from commit 01fc887a07ed8d07f6e7cd75a812b90956543338)

Change-Id: I114948232fd63eaf57a777d37623e4c931bdd0ff
diff --git a/core/config.mk b/core/config.mk
index 2f43f46..dd18d52 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -701,7 +701,7 @@
 
 # allow overriding default Java libraries on a per-target basis
 ifeq ($(TARGET_DEFAULT_JAVA_LIBRARIES),)
-  TARGET_DEFAULT_JAVA_LIBRARIES := core-oj core-libart legacy-test ext framework okhttp
+  TARGET_DEFAULT_JAVA_LIBRARIES := core-oj core-libart ext framework okhttp
 endif
 
 # Flags for DEX2OAT