title: Spring + google cloud: No qualifying bean of type 'com.google.cloud.storage.Storage' available
body: <p>I am trying to use spring library for google cloud API:</p>
  
  <p><strong>spring-cloud-gcp-starter-vision</strong></p>
  
  <p>But Spring Application Context fails to load with an error:</p>
  
  <blockquote>
    <p>Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentOcrTemplate' defined in class path resource [org/springframework/cloud/gcp/autoconfigure/vision/CloudVisionAutoConfiguration$VisionOcrConfiguration.class]: Unsatisfied dependency expressed through method 'documentOcrTemplate' parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.google.cloud.storage.Storage' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}...</p>
  </blockquote>
  
  <p>I'm not sure how I can handle it since it's all google's code, nothing in my own code.</p>
  
  <p>Just for the information, this is the way I'm trying to use this library:</p>
  
  <pre><code>@Service
  public class OCRServiceImpl implements OCRService {
  
      private static Log LOGGER = LogFactory.getLog(OCRServiceImpl.class);
  
      @Autowired
      private CloudVisionTemplate cloudVisionTemplate;
  
      @Autowired
      private ResourceLoader resourceLoader;
  </code></pre>