Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RoboLectric and Android in Eclipse (WARNING: no system properties value for ro.build.date.utc)

I'm getting this warning:

RoboLectric and Eclipse (WARNING: no system properties value for ro.build.date.utc)

I originally added the RoboLectric 2.1 Jar with dependencies. When I ran JUnit for the first time, it downloaded several things in the console. After that, every time I ran my tests I would get the error. I tried getting the RoboLectric 2.2 Jar Snapshot with dependencies but this did not fix the issue.

Does anyone know what the issue is?

I've tried these things already:

  • Adding my manifest path to org.robolectric.Config.properties file.
  • Using this VM argument -XX:-UseSplitVerifier as posed on GitHub.

Right now it doesn't cause any issues with my tests and if it will never be an issue, I am okay with ignoring the console pop-up but I don't know how to disable that, either.

Thanks!

like image 613
ncpierson Avatar asked Jun 28 '13 04:06

ncpierson


1 Answers

You can easily stop the automatic switch to the console window. With the Console window open, deselect the buttons "Show Console When Standard Out Changes" and "Show Console When Standard Error Changes" that are in its toolbar.

enter image description here

like image 154
scottt Avatar answered Oct 23 '22 11:10

scottt