diff --git a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk index edeecb2f62c35..26f768b96f11a 100644 --- a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk +++ b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk @@ -29,6 +29,8 @@ LOCAL_PACKAGE_NAME := MultiDexLegacyAndException LOCAL_DEX_PREOPT := false +LOCAL_JAVACFLAGS := -nowarn + mainDexList:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list diff --git a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java index 5e931bc863758..8d065a43ac612 100644 --- a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java +++ b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java @@ -15,14 +15,13 @@ */ package com.android.multidexlegacyandexception; -import android.test.ActivityInstrumentationTestCase2; - /** * Run the tests with: adb shell am instrument -w com.android.multidexlegacyandexception/android.test.InstrumentationTestRunner */ -public class Test extends ActivityInstrumentationTestCase2 { +@SuppressWarnings("deprecation") +public class Test extends android.test.ActivityInstrumentationTestCase2 { public Test() { super(MainActivity.class); }