Search code examples
androidclarifai

I am trying to use Clarifai api in my application, but getting an error saying that "cannot resolve symbol"


I am trying to use Clarifai API in my application, but getting an error saying that "cannot resolve symbol"

final List<ClarifaiOutput<Concept>> predictionResults = Clarifai.getDefaultModels()
.generalModel()
.predict()
.withInputs(
     ClarifaiInput.forImage(
         ClarifaiImage.of("https://samples.clarifai.com/metro-north.jpg")
     )
).executeSync()

It is saying

not able to resolve symbol Clarifai


Solution

  • It looks like something wasn't imported correctly here. Make sure you're following all of the steps outlined at:

    https://github.com/Clarifai/clarifai-java