-
Deprecated MethodsMethodDescriptionIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureConfigure asset directory via your build system; see Build System IntegrationConfigure libraries via your build system; see Build System IntegrationConfigure package name via your build system; see Build System IntegrationConfigure resource directory via your build system; see Build System IntegrationIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure builds http://robolectric.org/getting-started/To change your package name please override the applicationId in your build system. Changing package name here is broken as the package name will no longer match the package name encoded in the arsc resources file. If you are looking to simulate another application you can create another applications Context using
Context.createPackageContext(String, int). Note that you must add this package toorg.robolectric.shadows.ShadowPackageManager#addPackage(android.content.pm.PackageInfo)first.If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureUse theClassNameannotation or theImplementation.methodName()annotation parameter instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionuse LooperMode.PAUSEDThis mode is obsolete and will be removed soon.LEGACY mode is inaccurate, has known bugs and will be removed in a future release.REALISTIC is the default mode and does not need to be stated explicitly.
-
Deprecated Annotation Type ElementsAnnotation Type ElementDescriptionIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureIf you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure builds http://robolectric.org/getting-started/To change your package name please override the applicationId in your build system. Changing package name here is broken as the package name will no longer match the package name encoded in the arsc resources file. If you are looking to simulate another application you can create another applications Context using
Context.createPackageContext(String, int). Note that you must add this package toorg.robolectric.shadows.ShadowPackageManager#addPackage(android.content.pm.PackageInfo)first.If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configureUse theClassNameannotation or theImplementation.methodName()annotation parameter instead.