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
On this page
Latest version 4.18.1, released November 19, 2026.
Packages on Maven Central run on Java. Java end of life dates.
org.robolectric:robolectric 4.0 breaking changes
- Removed
org.robolectric.Robolectric.reset
Robolectric.reset was removed in org.robolectric:robolectric 4.0 central.sonatype.com - Removed
org.robolectric.RobolectricTestRunner.getAppManifest
RobolectricTestRunner.getAppManifest was removed in org.robolectric:robolectric 4.0 central.sonatype.com - Removed
org.robolectric.RobolectricTestRunner.getCompileTimeSdkResourceTable
RobolectricTestRunner.getCompileTimeSdkResourceTable was removed in org.robolectric:robolectric 4.0 central.sonatype.com - Removed
ShadowAccountManager.get
This method has been deleted from the shadow. github.com - Removed
ShadowAlertDialog.getShadowAlertController
Use getAlertController() instead. github.com - Removed
ShadowApplication.getApplicationContext
Use RuntimeEnvironment#application instead. github.com - Removed
ShadowContentResolver.clearContentObservers
This method no longer exists on the shadow. github.com - Removed
ShadowFrameLayout
The unused shadow class has been deleted. github.com - Removed
ShadowGradientDrawable.getColor
Use getLastSetColor() instead. github.com - Removed
ShadowKeyguardManager.setinRestrictedInputMode
This method has been deleted from the shadow. github.com - Removed
ShadowNetworkInfo.newInstance
This method has been deleted from the shadow. github.com - Removed
shadows.MotionEventBuilder
Use androidx.test.core.view.MotionEventBuilder instead. github.com - 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 - Configuration changed
Update the build configuration to use Android Gradle Plugin 3.2 or newer. robolectric.org - Configuration changed
@Config
Follow the recommended file structure of your build system instead. robolectric.org - 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 - Signature changed
org.robolectric.Robolectric.AttributeSetBuilder
Was static class AttributeSetBuilder; now static interface AttributeSetBuilder. central.sonatype.com - Signature changed
org.robolectric.Robolectric.buildAttributeSet
Was static org.robolectric.Robolectric.AttributeSetBuilder buildAttributeSet(); now static org.robolectric.android.AttributeSetBuilder buildAttributeSet(). central.sonatype.com - Signature changed
org.robolectric.RobolectricTestRunner.createClassLoaderConfig
The signature of RobolectricTestRunner.createClassLoaderConfig changed in org.robolectric:robolectric 4.0 central.sonatype.com - Signature changed
org.robolectric.RobolectricTestRunner.shouldIgnore
The signature of RobolectricTestRunner.shouldIgnore changed in org.robolectric:robolectric 4.0 central.sonatype.com - 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 - 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 - 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 - 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
org.robolectric:robolectric 3.0 breaking changes
- Removed
android.content.TestIntentSender
android.content.TestIntentSender was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.hardware.TestSensorManager
android.hardware.TestSensorManager was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.os.RoboVibrator
android.os.RoboVibrator was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.os.ShadowAsyncTaskBridge
android.os.ShadowAsyncTaskBridge was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.os.ShadowBinderBridge
android.os.ShadowBinderBridge was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.view.animation.ShadowAnimationBridge
android.view.animation.ShadowAnimationBridge was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
android.webkit.TestWebSettings
android.webkit.TestWebSettings was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
com.google.android.maps.ShadowItemizedOverlayBridge
com.google.android.maps.ShadowItemizedOverlayBridge was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
org.robolectric.AndroidManifest
org.robolectric.AndroidManifest was removed in org.robolectric:robolectric 3.0 central.sonatype.com - Removed
org.robolectric.bytecode.AsmInstrumentingClassLoader
org.robolectric.bytecode.AsmInstrumentingClassLoader was removed in org.robolectric:robolectric 3.0 central.sonatype.com
And 427 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.