title: Unable run greendao generator class file in android studio
body: <p>I have used greendao in my project for maintaining local database.</p>
  
  <p>project build.gradle</p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.1.2-4'
      repositories {
          maven {
              url 'https://maven.google.com'
          }
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
          classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>app build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'org.greenrobot.greendao'
  
  ...
  
  dependencies {...
  compile 'org.greenrobot:greendao:3.2.2'
      compile project(':greendaolib')
  }
  </code></pre>
  
  <p>Greendaolib build.gradle</p>
  
  <pre><code>apply plugin: 'java'
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      compile 'org.greenrobot:greendao-generator:3.2.2'
  }
  
  
  public class MainGenerator {
  
      public static void main(String[] args)  throws Exception {
  
          //place where db folder will be created inside the project folder
          Schema schema = new Schema(1,"com.v_empowr.voicestry.database");
  
          //Entity i.e. Class to be stored in the database // ie table LOG
          Entity word_entity= schema.addEntity("LOG");
  
          word_entity.addIdProperty(); //It is the primary key for uniquely identifying a row
  
          word_entity.addStringProperty("text").notNull();  //Not null is SQL constrain
  
          //  ./app/src/main/java/   ----   com/codekrypt/greendao/db is the full path
          new DaoGenerator().generateAll(schema, "./app/src/main/java");
  
      }
  }
  </code></pre>
  
  <p>Error message while run programme</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/greenrobot/greendao/generator/Schema
      at com.example.MainGenerator.main(MainGenerator.java:12)
  Caused by: java.lang.ClassNotFoundException: org.greenrobot.greendao.generator.Schema
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 1 more
  </code></pre>
  
  <p>Here i am using 
  Android Studio 3.0 Canary 1
  Build #AI-171.4010489, built on May 16, 2017
  JRE: 1.8.0_112-release-736 amd64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Windows 7 6.1</p>
  
  <p>So please suggest me to solve problem. </p>