Android studio导入OpenCV-android-sdk出现Error:(22, 0) Gradle DSL method not found: 'android()'

Android studio版本号1.4,

OpenCV-android-sdk版本号3.1.0

在将OpenCV-android-sdk导入到Android studio中时,出现的错误:

Error:(22, 0) Gradle DSL method not found:'android()'

Possible causes:

  • Theproject 'My Application' may be using a version of Gradle that does not containthe method.

    Open Gradle wrapperfile

  • The build file may be missing a Gradleplugin.

    ApplyGradle plugin

  • 按照下面的博客完美解决了我的问题:http://blog.csdn.net/u012964796/article/details/47000991

你可能感兴趣的:(Android,studio,OpenCV,导入错误)