title: Why Active Android is not working with gradle 2.0?
body: <p>I am using Active Android in my app. It was working fine till I upgraded my Android Studio to 2.0 from 1.3. With this upgrade my gradle also got upgraded to 2.0 which is causing some issue with the Active Android.</p>
  
  <p>I am getting this error when building with gradle 2.0.</p>
  
  <pre><code>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getTableName()' on a null object reference
                                                                         at com.activeandroid.Cache.getTableName(Cache.java:156)
                                                                         at com.activeandroid.query.From.addFrom(From.java:169)
                                                                         at com.activeandroid.query.From.toSql(From.java:250)
                                                                         at com.activeandroid.query.From.execute(From.java:298)
  </code></pre>
  
  <p>I tried building my old studio with gradle 1.3 it is still working fine.
  Any help please?</p>
  
  <p>build.gradle file when app is giving the above error</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.0.0'
          classpath 'com.google.gms:google-services:2.0.0-beta2'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>build.gradle when app is working fine</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.3.0'
          classpath 'com.google.gms:google-services:2.0.0-beta2'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>gradle wrapper properties</p>
  
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
  </code></pre>