首先,我对API很缺乏经验。我正在尝试使用一个简单的Java应用程序来调用Google Cloud Vision Api,但我一直遇到同样的问题,我无法真正找到任何信息。
我直接从谷歌克隆了this repository的代码样本。我用mvn clean package
构建了这个项目,一切正常。但是,当我要尝试它时(使用自述文件中所述的确切命令),它根本不起作用。
首先,我在日志中收到一条INFO
消息:
netty-tcnative unavailable (this may be normal)
之后:
IllegalArgumentException: Failed to load any of the given libraries: [netty_tcnative_windows_x86_32, netty_tcnative_x86_32, netty_tcnative]
这个错误信息对我来说根本没有任何意义。我没有对netty做任何事情,也没有被指示对它做任何事情(安装依赖关系等)。
我的环境变量GOOGLE_APPLICATION_CREDENTIALS
指向我的JSON,里面有我的API凭据。我真的不知道该怎么做,非常感谢任何指针。