Fix Robolectric 3.5.1 issue withIntent()

Robolectric.buildActivity(PlayerActivity.class)
.withIntent(intent)
.create()
.start().resume().get();
  1. Remove withIntent(intent)
  2. Add ‘intent’ to constructor
Robolectric.buildActivity(PlayerActivity.class,intent)
.create()
.start().resume().get();

Resource

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE