質問

I am getting UnknownhostException at execute step in:

httppost = new HttpPost("http://www.xxxx.com/contoller/method");
httpResponse response = client.execute(httppost);

java.net.UnknownHostException "www.xxxx.com"

Some where i read, i need to remove http://

but then i get this Exception

java.lang.IllegalStateException: Target host must not be null, or set in parameters.
役に立ちましたか?

解決

Try to open the link on pc browser.... if it works then open the link on device browser... hope it will help you to trace the where the problem is code or server

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top