【问题标题】:Android OCR: Importing to Android StudioAndroid OCR:导入到 Android Studio
【发布时间】:2016-03-22 09:54:00
【问题描述】:

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

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

错误:当前插件中不推荐使用 NDK 集成。考虑尝试新的实验性插件。详情请见http://tools.android.com/tech-docs/new-build-system/gradle-experimental。在 gradle.properties 中设置“android.useDeprecatedNdk=true”以继续使用当前的 NDK 集成。

我已经尝试寻找这个问题的解决方案,并从这个链接中找到了几个解决方案:

  1. After updating Android Studio to version 1.3.0 I am getting "NDK integration is deprecated in the current plugin" Error

  2. NDK Integration in Android Studio Error

但是,这两种方法对我都不起作用,因为第二种方法会导致错误:

“未找到 Gradle DSL 方法:'sourceSets()'”

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

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

【问题讨论】:

    标签: android android-studio android-ndk ocr


    【解决方案1】:

    按照本指南,你会得到正确的结果......我以前做过......

    Tess Two guide for android studio

    My project source code

    【讨论】:

    • 您好,之前看过教程,但说明不具体。重新尝试并使用您的源代码作为示例,现在设法使其工作:) 非常感谢
    猜你喜欢
    • 1970-01-01
    • 2013-05-12
    • 1970-01-01
    • 1970-01-01
    • 2015-07-29
    • 1970-01-01
    • 2013-12-02
    • 2016-04-29
    • 1970-01-01
    相关资源
    最近更新 更多