---
title: "org.robolectric:robolectric 4.0 Breaking Changes"
description: "What each org.robolectric:robolectric release removed, renamed or changed: 461 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/org.robolectric:robolectric
last_updated: 2026-12-04
---

# org.robolectric:robolectric breaking changes

org.robolectric:robolectric 4.0 (October 25, 2018) is its newest release with breaking changes, 24 of them. The first: Removed org.robolectric.Robolectric.reset. Every breaking API change we have recorded in org.robolectric:robolectric on Maven Central: 461 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.18.1`, released November 19, 2026. 

Packages on Maven Central run on Java. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [3.0](#v-3-0) to [4.0](#v-4-0): 24 breaking changes in 1 version.

## org.robolectric:robolectric 4.0 breaking changes

org.robolectric:robolectric 4.0, released October 25, 2018: 24 breaking changes.

- **Removed** `org.robolectric.Robolectric.reset`  

Robolectric.reset was removed in org.robolectric:robolectric 4.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Removed** `org.robolectric.RobolectricTestRunner.getAppManifest`  

RobolectricTestRunner.getAppManifest was removed in org.robolectric:robolectric 4.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Removed** `org.robolectric.RobolectricTestRunner.getCompileTimeSdkResourceTable`  

RobolectricTestRunner.getCompileTimeSdkResourceTable was removed in org.robolectric:robolectric 4.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Removed** `ShadowAccountManager.get`  

This method has been deleted from the shadow. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowAlertDialog.getShadowAlertController`  

Use getAlertController() instead. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowApplication.getApplicationContext`  

Use RuntimeEnvironment#application instead. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowContentResolver.clearContentObservers`  

This method no longer exists on the shadow. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowFrameLayout`  

The unused shadow class has been deleted. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowGradientDrawable.getColor`  

Use getLastSetColor() instead. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowKeyguardManager.setinRestrictedInputMode`  

This method has been deleted from the shadow. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `ShadowNetworkInfo.newInstance`  

This method has been deleted from the shadow. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Removed** `shadows.MotionEventBuilder`  

Use androidx.test.core.view.MotionEventBuilder instead. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Behavior changed**  

Shadow implementation methods are no longer public, so tests must call SDK methods directly on Android classes instead of through shadows. [github.com](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.0)
- **Configuration changed**  

Update the build configuration to use Android Gradle Plugin 3.2 or newer. [robolectric.org](https://robolectric.org/upgrade%5Fto%5Fversion%5F4)
- **Configuration changed** `@Config`  

Follow the recommended file structure of your build system instead. [robolectric.org](https://robolectric.org/upgrade%5Fto%5Fversion%5F4)
- **Signature changed** `org.robolectric.android.fakes.RoboMonitoringInstrumentation`  

Was class RoboMonitoringInstrumentation extends android.support.test.runner.MonitoringInstrumentation; now class RoboMonitoringInstrumentation extends androidx.test.runner.MonitoringInstrumentation. [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.Robolectric.AttributeSetBuilder`  

Was static class AttributeSetBuilder; now static interface AttributeSetBuilder. [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.Robolectric.buildAttributeSet`  

Was static org.robolectric.Robolectric.AttributeSetBuilder buildAttributeSet(); now static org.robolectric.android.AttributeSetBuilder buildAttributeSet(). [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.RobolectricTestRunner.createClassLoaderConfig`  

The signature of RobolectricTestRunner.createClassLoaderConfig changed in org.robolectric:robolectric 4.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.RobolectricTestRunner.shouldIgnore`  

The signature of RobolectricTestRunner.shouldIgnore changed in org.robolectric:robolectric 4.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.SdkPicker.<init>`  

Was SdkPicker() SdkPicker(java.util.Collection\<org.robolectric.internal.SdkConfig>, java.util.Properties) SdkPicker(java.util.Properties, int...); now SdkPicker(java.util.Collection\<org.robolectric.internal.SdkConfig>... [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.SdkPicker.configuredSdks`  

Was protected java.util.Set\<org.robolectric.internal.SdkConfig> configuredSdks(org.robolectric.annotation.Config, org.robolectric.manifest.AndroidManifest); now protected java.util.Set\<org.robolectric.internal.SdkConfig>... [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.SdkPicker.enumerateEnabledSdks`  

Was protected java.util.Set\<org.robolectric.internal.SdkConfig> enumerateEnabledSdks(); now protected static java.util.Set\<org.robolectric.internal.SdkConfig> enumerateEnabledSdks(String). [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)
- **Signature changed** `org.robolectric.SdkPicker.selectSdks`  

Was java.util.List\<org.robolectric.internal.SdkConfig> selectSdks(org.robolectric.annotation.Config, org.robolectric.manifest.AndroidManifest); now java.util.List\<org.robolectric.internal.SdkConfig>... [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/4.0)

## org.robolectric:robolectric 3.0 breaking changes

org.robolectric:robolectric 3.0, released July 7, 2015: 437 breaking changes.

- **Removed** `android.content.TestIntentSender`  

android.content.TestIntentSender was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.hardware.TestSensorManager`  

android.hardware.TestSensorManager was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.os.RoboVibrator`  

android.os.RoboVibrator was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.os.ShadowAsyncTaskBridge`  

android.os.ShadowAsyncTaskBridge was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.os.ShadowBinderBridge`  

android.os.ShadowBinderBridge was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.view.animation.ShadowAnimationBridge`  

android.view.animation.ShadowAnimationBridge was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `android.webkit.TestWebSettings`  

android.webkit.TestWebSettings was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `com.google.android.maps.ShadowItemizedOverlayBridge`  

com.google.android.maps.ShadowItemizedOverlayBridge was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `org.robolectric.AndroidManifest`  

org.robolectric.AndroidManifest was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)
- **Removed** `org.robolectric.bytecode.AsmInstrumentingClassLoader`  

org.robolectric.bytecode.AsmInstrumentingClassLoader was removed in org.robolectric:robolectric 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.robolectric/robolectric/3.0)

And 427 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
