Statement is Android program apply plugin: ' Com.android.application ' Android {signingconfigs {} compilesdkversion Buildt Oolsversion ' 25.0.0 ' sourcesets {main {manifest.srcfile ' androidmanifest.xml ' JAVA.SRCDI rs = [' src '] resources.srcdirs = [' src '] aidl.srcdirs = [' src '] renderscript.srcdirs = [' src '] res.srcdirs = [' res '] assets.srcdirs = [' Assets ']}//Move the tests to tests/j Ava, Tests/res, etc ... Instrumenttest.setroot (' Tests ') debug.setroot (' Build-types/debug ') release.setroot (' Build-types/relea Se ')} defaultconfig {ApplicationID "Com.wbh.hoge.crmapp" Minsdkversion targetsdkversion 21 Versioncode 1 Versionname "1.0" manifestplaceholders = [umeng_channel_value: "Channel_name"]} Remove Lint Check error lintoptions {Abortonerror false} buildtypes {release {//whether inLine confusion minifyenabled false//confuse file location proguardfiles getdefaultproguardfile (' proguard-android . txt '), ' Proguard-rules.pro '}} productflavors.all {flavor, flavor.manifestplaceholders = [umen G_channel_value:name]} compileoptions {sourcecompatibility javaversion.version_1_7 TargetCompatibil ity javaversion.version_1_7}}dependencies {//compile ' com.umeng:fb:5.4.0 ' compile ' com.android.support:support -v4:21.+ ' Compile filetree (include: ' *.jar ', dir: ' Libs ') compile ' com.jiechic.library:xutils:2.6.14 '//compile f Iles (' Libs/wbh-adapter-0.0.1-snapshot.jar ') compile files (' Libs/universal-image-loader-1.9.5.jar ')}repositories { Jcenter () Maven {URL "https://raw.githubusercontent.com/umeng/mvn-repo-umeng/master/repository"}}
This is an error-free configuration, really laborious, for several days, are not, finally can be;
Gradle This plugin, will be downloaded from the Internet files, placed in the corresponding folder:
/applications/android studio.app/contents/gradle/gradle-3.3
Originally the path is not gradle-3.3, hard plus. Do not know how to set the global, or set up a new project will be stuck.
Operating Androidstudio on Mac