title: Error when creating object implements interface: The class doesn't have a constructor
body: <p>I just tried today to develop a new app in Kotlin about grabbing data from any website using Volley. I encounter a problem when creating an <code>StringRequest</code> instance and I don't know how to solve it.</p>
  
  <p>I get this error when creating object <code>Response.Listener&lt;String&gt;</code> and <code>Response.ErrorListener</code>:</p>
  
  <blockquote>
    <p>The class doesn't have a constructor</p>
  </blockquote>
  
  <p>The code is below:</p>
  
  <pre><code>class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          Btn.setOnClickListener {
              val queue = Volley.newRequestQueue(this)
              val url = "http://www.google.com"
              val stringRequest = StringRequest(Request.Method.GET, url,
                      object:Response.Listener&lt;String&gt;() {
                          override  fun onResponse(response:String) {
                              // Display the first 500 characters of the response string.
                              textView.setText("Response is: " + response.substring(0, 500))
                          }
                      }, object:Response.ErrorListener() {
                          override fun onErrorResponse(error:VolleyError) {
                              textView.setText("That didn't work!")
                          }
                      })
              queue.add(stringRequest)
          }
      }
  }
  </code></pre>
  
  <p>Thank you in advance.</p>