Http request using HttpClient giving errors

I am trying to do http request using httpClient.h . But ended up in following errors. Any suggestions please.

Arduino: 1.8.9 (Windows 10), Board: "Arduino Mega ADK"

C:\Users\Arduino\http_v2\http_v2.ino: In function 'void loop()':

http_v2:56:16: error: no matching function for call to 'HttpClient::HttpClient()'

HttpClient http;

^

In file included from C:\Users\ Arduino\http_v2\http_v2.ino:3:0:

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:50:5: note: candidate: HttpClient::HttpClient(Client&)

HttpClient(Client& aClient);

^

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:50:5: note: candidate expects 1 argument, 0 provided

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:37:7: note: candidate: constexpr HttpClient::HttpClient(const HttpClient&)

class HttpClient : public Client

^

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:37:7: note: candidate expects 1 argument, 0 provided

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:37:7: note: candidate: constexpr HttpClient::HttpClient(HttpClient&&)

C:\Users\Arduino\libraries\HttpClient-2.2.0/HttpClient.h:37:7: note: candidate expects 1 argument, 0 provided

http_v2:57:10: error: 'class HttpClient' has no member named 'begin'

http.begin("http://jsonplaceholder.typicode.com/comments?id=10"); //Specify the URL

^

http_v2:58:25: error: 'class HttpClient' has no member named 'GET'

int httpCode = http.GET(); //Make the request

^

http_v2:60:31: error: 'class HttpClient' has no member named 'getString'

String payload = http.getString();

^

http_v2:67:10: error: 'class HttpClient' has no member named 'end'

http.end(); //Free the resources

^

Multiple libraries were found for "HttpClient.h"
Used: C:\Users\Arduino\libraries\HttpClient-2.2.0
Not used: C:\Program Files (x86)\Arduino\libraries\Bridge
exit status 1
no matching function for call to 'HttpClient::HttpClient()'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Multiple libraries were found for "HttpClient.h"
 Used: C:\Users\Arduino\libraries\HttpClient-2.2.0
 Not used: C:\Program Files (x86)\Arduino\libraries\Bridge

This is the first thing you need to resolve. You downloaded a library called HttpClient, when you already had one supplied with the IDE. Why?

PaulS:

Multiple libraries were found for "HttpClient.h"

Used: C:\Users\Arduino\libraries\HttpClient-2.2.0
Not used: C:\Program Files (x86)\Arduino\libraries\Bridge



This is the first thing you need to resolve. You downloaded a library called HttpClient, when you already had one supplied with the IDE. Why?

Bridge library is not a HttpClient library. Bridge is for Yun

Juraj:
Bridge library is not a HttpClient library. Bridge is for Yun

Then why does the IDE think that there is a copy of the HttpClient library in that folder?

PaulS:
Then why does the IDE think that there is a copy of the HttpClient library in that folder?

there is a file named HttpClient.h and the library.properties file doesn't specify 'library detection' .h files