title: android LocationRequest is private
body: <p>I want to get driver current location in uber clone. When I write this code:</p>
  <pre><code>locationRequest=LocationRequest.create();
  locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
  locationRequest.setInterval(5000);
  locationRequest.setFastestInterval(1000);
  </code></pre>
  <p>I get the error:</p>
  <blockquote>
  <p>Cannot resolve method 'create' in 'LocationRequest'</p>
  </blockquote>
  <p>And when I write</p>
  <pre><code>mLocationRequest=new LocationRequest();
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p>'LocationRequest()' has private access in 'android.location.LocationRequest'</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/UdmAd.png" rel="nofollow noreferrer">num 1</a></p>
  <p><a href="https://i.stack.imgur.com/LCzB4.png" rel="nofollow noreferrer">num 2</a></p>