Android OCR:导入到 Android Studio

Android OCR: Importing to Android Studio

我正在尝试将 android ocr 项目从 Eclipse(juno) 导入到 Android Studio。但是面临以下错误。

Error:Execution failed for task ':eyestwo:compileReleaseNdk'.

Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.

我已尝试搜索此问题的解决方案,并从以下链接中找到了多个解决方案:

但是,这两种方法都不适合我,因为第二种方法会导致错误:

"Gradle DSL method not found:'sourceSets()'"

当我尝试 运行 应用程序时,第一种方法导致如下所示的错误:

我使用的源代码来自这里:https://github.com/TheWall89/AndrOCR

按照本指南进行操作,您会得到正确的结果...我之前已经这样做过...

Tess Two guide for android studio

My project source code