在 Google 预测 API 中导入训练 class 时出错

Error while importing Training class in Google Prediction API

我正在尝试 运行 PredictionSample google-api-java-client-samples。但是我收到导入错误。项目在 google 客户端库中找不到 Training.java 文件。我已经导入了所有必需的库并包含在 class 路径中。

这里出现错误。

我在 google 中尝试查找类似情况,但只找到一个未解决的问题。

所以我漏掉了什么地方?提前致谢。

致意,

看起来像图书馆的 com.google.api.services.prediction.model.Training was removed in v1.6. Try using the v1.5 version