Remove Mockito from static libs in android.car.testapi
Having Mockito as a static lib in the testapi can cause it to conflict
with a local version of Mockito. Have mockito load dynamically instead
and use the local version of Mockito in the classpath of the app using
the testapi library.
Test: . build/envsetup.sh && lunch hawk-userdebug
make -jN RunCarLibTests
Change-Id: I9941b881a7f5bcd9b286bf483e79bca6da956442
diff --git a/car-test-lib/Android.bp b/car-test-lib/Android.bp
index aaa9138..e4282b0 100644
--- a/car-test-lib/Android.bp
+++ b/car-test-lib/Android.bp
@@ -25,6 +25,8 @@
static_libs: [
"android.car",
"car-service-lib-for-test",
+ ],
+ libs: [
"mockito",
],
installable: false,