android studio——Could not find method externalNativeBuild()

Posted 鸭子船长

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

解决方法:确保在build.gradle中,gradle最低被设置为2.2.0

即在buildscript {...}中

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

以上是关于android studio——Could not find method externalNativeBuild()的主要内容,如果未能解决你的问题,请参考以下文章

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

想离线使用 Android studio,但出现Could not download

Android studio报错Could not find method dependencyResolutionManagement() for arguments的解决方法

Android Studio Could not GET gradle-3.2.0.pom (安卓包配置相关问题)

Android studio之编译提示Could not find :umeng-asms-v1.2.1:.

Android studio初次运行出现Installation did not succeed. The application could not be installed