For the 1st error I think your running tests that ...
# spek
r
For the 1st error I think your running tests that uses android classes that are only available when running on an actual device.