compileSdkVersion,buildToolsVersion还有targetSdkVersion要一致,从而避免build的时候报错
Android Studio里的app的build.gradle文件:
1 android { 2 compileSdkVersion 24 3 buildToolsVersion "24.0.0" 4 5 defaultConfig { 6 applicationId "com.wingsofts.rxretrofitmvpdagger2databinding" 7 minSdkVersion 15 8 targetSdkVersion 24 9 versionCode 1 10 versionName "1.0" 11 } 12 buildTypes { 13 release { 14 minifyEnabled false 15 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 16 } 17 } 18 dataBinding { 19 enabled = true 20 } 21 }
compileSdkVersion,buildToolsVersion还有targetSdkVersion要一致,从而避免build的时候报错