HttpRequest不导入其方法

时间:2017-08-17 13:03:42

标签: java android

 protected Integer doInBackground(String... params)
   {

    String url="http://ff4627de.ngrok.io/"+"login.php";
    String status="";
    int id=0;

    try {
        HttpRequest httpRequest=new HttpRequest(url);
        HashMap<String ,String> value=new HashMap<>();
        value.put("email",params[0]);
        value.put("password",params[1]);
         JSONObject jsonObject=httpRequest.prepare(HttpRequest.Method.POST)
         .withData(value).sendAndReadJSON();

HttpRequest(url).prepare()方法以及.Method出错。它表明它无法解决它们。

0 个答案:

没有答案