I'm also having a problem downloading the Android SDK with Stencyl 4.0. I've reinstalled Stencyl, redownloaded Java SDK 1.8 and am even using the sw.jar file provided by Justin above.
However, every time I try to download the Android SDK I get the attached error - any help is appreciated!