In sdk manager i can\'t see any packages to install or any platforms.
I have tried running the sdk as administrator and disabling the antivirus program and firewall.
I believe I found the answer. I'm on Windows 7, and was having this same trouble. I did the following:
For me the line looked like this at the end:
call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% -Dcom.android.sdkmanager.toolsdir="%tools_dir%" -Dcom.android.sdkmanager.workdir=%work_dir% -classpath "%jar_path%;%swt_path%\swt.jar" com.android.sdkmanager.Main %*
I then see all the packages properly show up when I run "SDK Manager" from the windows start menu. NOTE! When I run it I right click and choose "run as administrator" which I think is always a good idea so that it has permission to add files etc.
I found this solution by finding this article:
http://maven.40175.n5.nabble.com/java-net-SocketException-caught-when-connecting-to-the-target-host-Invalid-argument-connect-td5715972.html