Update Robolectric.
This required updating a test.
MODIFY
analytics/build.gradle
analytics/build.gradle
@@ -9,7 +9,7 @@ dependencies {
compile 'com.android.support:support-annotations:25.3.1'
testCompile 'junit:junit:4.12'
- testCompile('org.robolectric:robolectric:3.1.4') {
+ testCompile('org.robolectric:robolectric:3.5') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}

MODIFY
analytics/src/test/java/com/segment/analytics/AnalyticsTest.java
analytics/src/test/java/com/segment/analytics/AnalyticsTest.java
@@ -796,6 +796,7 @@ public class AnalyticsTest {
editor.putInt("build", 100);
editor.putString("version", "1.0.0");
editor.apply();
+ when(application.getSharedPreferences("analytics-android-qaz", MODE_PRIVATE)).thenReturn(sharedPreferences);
PackageManager packageManager = mock(PackageManager.class);
when(packageManager.getPackageInfo("com.foo", 0)).thenReturn(packageInfo);

Update Robolectric.

This required updating a test.