java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder Error?
<p>I am encountering the error: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder however i have imported the classes so am not sure why it is popping up. My build.gradle and code is below:</p>

<pre><code>private String getAccessToken() {
    try {
        Log.e("tree","get access entered");
        javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();
        javax.ws.rs.client.Entity&lt;String&gt; payload =
                javax.ws.rs.client.Entity.text("grant_type=client_credentials&amp;redirect_uri=https://facebook.com/__");
        javax.ws.rs.core.Response response = client.target("https://v2.api.xapo.com/oauth2/token")
                .request(MediaType.TEXT_PLAIN_TYPE)
                .header("Authorization","Basic ___")
                .post(payload);
Log.e("tree","response completed");
            String body = response.readEntity(String.class);
            Log.e("tree","body "+body);
        } catch(Exception e) {
Log.e("tree","token exception "+e.getMessage());
        }
        return "";
    }
</code></pre>