title: com.microsoft.projectoxford.vision.rest.visionserviceexception: unable to resolve host in android v1.0
body: <p>I am using Microsoft Vision and Face api for extracting data from image and detect face from image. I am using the following link as reference:</p>
  
  <p><a href="https://github.com/Microsoft/ProjectOxford-ClientSDK/tree/master/Vision/Android" rel="nofollow noreferrer">https://github.com/Microsoft/ProjectOxford-ClientSDK/tree/master/Vision/Android</a>.</p>
  
  <p>It was working fine for me but suddenly it stopped working and was throwing following error: </p>
  
  <blockquote>
    <p>"com.microsoft.projectoxford.vision.rest.visionserviceexception:
    unable to resolve host in android"</p>
  </blockquote>
  
  <p>I tried to change api roots </p>
  
  <blockquote>
    <p><a href="https://westus.api.cognitive.microsoft.com/vision/v1.0" rel="nofollow noreferrer">https://westus.api.cognitive.microsoft.com/vision/v1.0</a>
    <a href="https://westus.api.cognitive.microsoft.com/vision/v1.0/ocr/" rel="nofollow noreferrer">https://westus.api.cognitive.microsoft.com/vision/v1.0/ocr/</a></p>
  </blockquote>
  
  <p>and I also regenerate the api key but it is still not working. 
  Please suggest me any solution.</p>