https://blog.csdn.net/ch1406285246/article/details/52785052
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' } }
//需要添加上面的代码 apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion "21.0.0" android {compileOptions.encoding = "UTF-8"} defaultConfig { applicationId "com.cheng.contact" minSdkVersion 15 targetSdkVersion 19 versionCode 2 versionName "1.1" }