首页 > 代码库 > greendao 3.1.0在android studio中配置

greendao 3.1.0在android studio中配置

1 项目根build.gradle

  classpath ‘org.greenrobot:greendao-gradle-plugin:3.1.0‘

 

2 app中build.gradle

  apply plugin:‘org.greenrobot.greendao‘

  dependencies{

  compile ‘org.greenrobot:greedao:3.1.0‘

  }

3 配置生成目录

  greendao{

  targetGenDir ‘src/main/java‘

  }

 

greendao 3.1.0在android studio中配置