This will always happen with the current detection method because the platform jar will be on the classpath. I didn't know of anything better at the time. Maybe a system property or something could be used.

When developing in Android Studio, Android Platform is detected
I'm using Android Studio for developing retrofit.  When running unit tests, `Platform.Android` is used as `android.os.Build` is in my classpath incidentally.  Is there an alternate way to tell if we are running inside Android? Or could we expose Platform so that folks can use different means to detect the platform without c&p what's in retrofit?

retrofit/src/main/java/retrofit/Platform.java
retrofit/src/main/java/retrofit/Platform.java
diff --git a/retrofit/src/main/java/retrofit/Platform.java b/retrofit/src/main/java/retrofit/Platform.java
index 8721a097df..aeead9acee 100644
--- a/retrofit/src/main/java/retrofit/Platform.java
+++ b/retrofit/src/main/java/retrofit/Platform.java
@@ -43,10 +43,12 @@ static Platform get() {
   private static Platform findPlatform() {
     try {
       Class.forName("android.os.Build");
-      return new Android();
-    } catch (ClassNotFoundException e) {
-      return new Base();
+      if (Build.VERSION.SDK_INT != 0) {
+        return new Android();
+      }
+    } catch (ClassNotFoundException ignored) {
     }
+    return new Base();
   }
 
   abstract Converter defaultConverter();
