android java.net.ProtocolException: Connection already established

后端 未结 5 2042
南笙
南笙 2020-12-20 06:27
public static Bitmap getImage(String address) throws Exception {

    Bitmap imgmap = null;
    InputStream is = null;

    URL url = new URL(address);

    HttpURLC         


        
5条回答
  •  醉话见心
    2020-12-20 07:13

    I know it is completely nonsense. But it happens for me in debug mode when I put break point on this line.

    con.setRequestMethod()

    As soon as I removed the break point, the error has gone!

提交回复
热议问题