title: NoSuchMethodError Request.setTag
body: <p>I'm trying to get response from server during register process but app keeps crashing on attempt to get server message. below is the section of the code that makes the request to <code>AppControlla.java</code> which in turn passes the request to server.</p>
  
  <pre><code>@Override
          public void onResponse(String response) {
              Log.d(TAG, "Register Response: " + response.toString());
              hideDialog();
  </code></pre>
  
  <p>and this is the <code>AppControlla.java</code></p>
  
  <pre><code>import android.app.Application;
  import android.text.TextUtils;
  
  import com.app.myapp.JsonRequestActivity;
  
  import com.android.volley.Request;
  import com.android.volley.RequestQueue;
  import com.android.volley.toolbox.Volley;
  
  import retrofit2.Call;
  import retrofit2.http.Body;
  import retrofit2.http.POST;
  
  import static android.R.attr.tag;
  
  public class AppController extends Application {
  
  public static final String TAG = AppController.class.getSimpleName();
  
  private RequestQueue mRequestQueue;
  
  private static AppController mInstance;
  
  @Override
  public void onCreate() {
      super.onCreate();
      mInstance = this;
  }
  
  public static synchronized AppController getInstance() {
      return mInstance;
  }
  
  public RequestQueue getRequestQueue() {
      if (mRequestQueue == null) {
          mRequestQueue = Volley.newRequestQueue(getApplicationContext());
   }
  
      return mRequestQueue;
      }
  
  public &lt;T&gt; void addToRequestQueue(Request&lt;T&gt; req, String tag) {
      req.setTag(TextUtils.isEmpty(tag) ? TAG : tag);//crash occurs here
      getRequestQueue().add(req);
  
  }
  
  public &lt;T&gt; void addToRequestQueue(Request&lt;T&gt; req ) {
      req.setTag(TAG);
      getRequestQueue().add(req);
  }
  
  public void cancelPendingRequests(Object tag) {
      if (mRequestQueue != null) {
          mRequestQueue.cancelAll(tag);
      }
  }
  }    
  </code></pre>
  
  <p>below is the logcat message</p>
  
  <pre><code>java.lang.NoSuchMethodError: No virtual method setTag(Ljava/lang/Object;)Lcom/android/volley/Request; in class Lcom/android/volley/Request; or its super classes (declaration of 'com.android.volley.Request' appears in /data/app/com.fastchat-2/split_lib_dependencies_apk.apk:classes27.dex) at com.fastchat.AppController.addToRequestQueue(AppController.java:45) 
  </code></pre>