title: Realm.init() cannot resolve method init not working in Application onCreate?
body: <p>Can't call init() method on Realm. Any ideas what I'm doing wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/BaenF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BaenF.jpg" alt="enter image description here"></a></p>
  
  <p>I have added the dependency in my build.gradle(project):</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.1'
          classpath "io.realm:realm-gradle-plugin:3.2.0"
  
      }
  }
  </code></pre>
  
  <p>and applied the plugin in the build.gradle(app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'realm-android'
  </code></pre>