title: I can't send the api request using retrofit android or geeting any response from the APi
body: <p>I faced this error at first <code>java.lang.BootstrapMethodError: Exception from call site #4</code> </p>
  
  <p>Then I solved it by adding </p>
  
  <pre><code>compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  } 
  </code></pre>
  
  <p>I resolved that error but unfortunately, I cant send the API request or get any response on my android app. Can anyone tell me what I am missing?</p>
  
  <p><strong>Here is a piece of code that sends the request</strong></p>
  
  <pre><code>@Override
  public void onClick(View v) {
  
      //checking for the shared preferences and saving button instance
      if ( cardView.isEnabled () ) {
  
  
      Toast.makeText (getActivity (), "Request Sent to SNAL", Toast.LENGTH_LONG).show ();
  
      //fetching data from the api
      Retrofit retrofit = new Retrofit.Builder ()
                          .baseUrl ("https://api.myjson.com/")
                          .addConverterFactory (GsonConverterFactory.create ())
                          .build ();
  
      OcappJsonApiSNAL ocappJsonApi = retrofit.create (OcappJsonApiSNAL.class);
  
      Call&lt;List&lt;StudentClearanceSNAL&gt;&gt; listCall = ocappJsonApi.getStudents ();
  
      listCall.enqueue (new Callback&lt;List&lt;StudentClearanceSNAL&gt;&gt; () {
          @Override
          public void onResponse(Call&lt;List&lt;StudentClearanceSNAL&gt;&gt; call, Response&lt;List&lt;StudentClearanceSNAL&gt;&gt; response) {
  
              if(!response.isSuccessful ()){
                  Toast.makeText (getActivity (),"From OCApp " + response.code (),Toast.LENGTH_LONG).show ();
                  return;
              }
  
              List&lt;StudentClearanceSNAL&gt; studentClearancess = response.body ();
      }
  }
  </code></pre>