【问题标题】:Google vision api integration in java (error)Java 中的 Google Vision api 集成(错误)
【发布时间】:2016-08-29 18:20:20
【问题描述】:

我正在尝试使用下面的 github 示例代码链接来实施和添加谷歌视觉服务到我的项目中。 https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/text/ 在 ImageText 和 Word java 类中遇到此错误

public static Builder builder() {
return new AutoValue_ImageText.Builder();
  }

其中AutoValue_ImageText类型无法解析和

 public static Builder builder() {
return new AutoValue_Word.Builder();
  }

其中 AutoValue_Word 类型无法解析。 请帮忙!我什至无法修复这些语法错误,看看这段代码是否正确。 提前谢谢你

【问题讨论】:

    标签: java api typeerror google-vision


    【解决方案1】:

    在我看来,那里缺少 gradle 文件。 确保你的 app/build.gradle 中有那一行

    dependencies {
        ...
        compile 'com.google.android.gms:play-services-vision:9.0.0+'
    }
    

    对我来说,这个小攻略帮了我很多:Mobile Vision Text

    【讨论】:

    • 我正在使用 maven,是否有一个等效的依赖项可以添加到我的 pom.xml 中?谢谢
    猜你喜欢
    • 1970-01-01
    • 2020-04-03
    • 1970-01-01
    • 2021-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-11
    • 2021-03-01
    相关资源
    最近更新 更多