MVVM-导入配置
2019-11-19 本文已影响0人
tea也么
application build.gradle设置
- 设置依赖包
dependencies {
implementation 'com.github.kwcn:One:1.1.8'
}
- 加入插件
apply plugin: 'com.android.application'
apply plugin: 'android-aspectjx'
加入databinding
android {
dataBinding {
enabled = true
}
}
项目 build.gradle设置
- classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.6'
- maven { url 'https://jitpack.io' }
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.6'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}