title: Expected resource of type ID
body: <p>I am using <code>ANKO</code> to build simple project. When I try to set id for an <code>EditText</code> I am getting following error.</p>
  
  <blockquote>
    <p>Ensures that resource id's passed to APIs are of the right type; for example, calling <code>Resources.getColor(R.string.name)</code> is wrong.</p>
  </blockquote>
  
  <pre><code>import android.support.v7.app.AppCompatActivity
  import android.os.Bundle
  import org.jetbrains.anko.*
  
  class MainActivity : AppCompatActivity() {
  
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      relativeLayout {
          editText{
              id = 1
          }
      }
  }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Rey1F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rey1F.png" alt="click here to view an error image format"></a></p>