android studio——Could not find method externalNativeBuild()

学向勤中得,萤窗万卷书。这篇文章主要讲述android studio——Could not find method externalNativeBuild()相关的知识,希望能为你提供帮助。
gradle同步工程时出现错误
Error:(36, 0) Could not find method externalNativeBuild() for arguments [bui[email  protected]20cbf76f] on ProductFlavor_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=16, mCode
【android studio——Could not find method externalNativeBuild()】解决方法:确保在build.gradle中,gradle最低被设置为2.2.0
即在buildscript {...}中

dependencies { classpath ‘com.android.tools.build:gradle:2.2.0‘ }


    推荐阅读