我在执行 AWS Tetxtract API 时收到此错误。线程 “main” java.lang.NoSuchMethodError 中的异常:com.amazonaws.client.AwsSyncClientParams.getAdvancedConfig()Lcom/amazonaws/client/builder/AdvancedConfig;at com.amazonaws.services.textract.AmazonTextractClient.(AmazonTextractClient.java:149) at com.amazonaws.services.textract.AmazonTextractClient.(AmazonTextractClient.java:133) at com.amazonaws.services.textract.AmazonTextractClientBuilder.build(AmazonTextractClientBuilder.java:61) at com.amazonaws.services.textract.AmazonTextractClientBuilder.build(AmazonTextractClientBuilder.java:27) at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46) at com.tr.fundamental.s3FileUploader.AnalyzeDocument.main(AnalyzeDocument.java:177)我已经下载了最新的Textract jar并包含在我的构建路径中。我没有得到任何编译错误,但当我运行时,我得到这个错误在这一点上 // Call AnalyzeDocument EndpointConfiguration endpoint = new EndpointConfiguration("https://textract.us-east-1.amazonaws.com", "us-east-1"); AmazonTextract client = AmazonTextractClientBuilder.standard().withEndpointConfiguration(endpoint).build();我的凭据和所有凭据都是正确的,并且能够连接到 S3。我不确定我错过了什么。请帮忙
添加回答
举报
0/150
提交
取消