diff --git a/tests/common/Android.bp b/tests/common/Android.bp index 60a02fb7be..1600a6a0ec 100644 --- a/tests/common/Android.bp +++ b/tests/common/Android.bp @@ -155,6 +155,9 @@ java_defaults { // if sdk_version="" this gets automatically included, but here we need to add manually. "framework-res", ], + // Tests must check a large number of deprecated methods and warning about it + // sends hundreds of warning lines flooding the useful warnings. + kotlincflags: ["-Xsuppress-warning=DEPRECATION"], } // defaults for tests that need to build against framework-connectivity's @hide APIs, but also @@ -178,6 +181,9 @@ java_defaults { // if sdk_version="" this gets automatically included, but here we need to add manually. "framework-res", ], + // Tests must check a large number of deprecated methods and warning about it + // sends hundreds of warning lines flooding the useful warnings. + kotlincflags: ["-Xsuppress-warning=DEPRECATION"], defaults_visibility: ["//packages/modules/Connectivity/tests:__subpackages__"], }