javagoogle-clientgoogle-prediction

Error while importing Training class in Google Prediction API


I'm trying to run PredictionSample in google-api-java-client-samples. But I get import error. Project can't find Training.java file in google client library. I have imported all the required libraries and included in class path.

enter image description here

Here I get error.

enter image description here

I tried in google to find similar situation but only found one unresolved question.

So where did I miss? Thanks in advance.


Solution

  • Salutations,

    Looks like the com.google.api.services.prediction.model.Training was removed in v1.6. Try using the v1.5 version of the library.