currently all unit test fail with:
java.lang.RuntimeException: Method from not mocked.Set android.testOptions.unitTests.returnDefaultValues=true in build.gradle to make all methods return zero or null.
(I'm testing my custom view)
Running tests from gradle and AS should give the same results - can you run ./gradlew clean and see if they still differ? Please file a bug at https://code.google.com/p/android/issues/entry?template=Android%20Studio%20bug if the problem remains.