title: How to resolve "Places API for Android does not seem to be enabled for your app"
body: <p>This error has been bugging me since more than a Day now. I have Already searched thoroughly, but none of the answer provided a solution for me.
  I have properly set up the API key with App restrictions providing the package name and SHA1 key.
  Here is the code
  manifest.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.myapplication"&gt;
      &lt;!--
           The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
           Google Maps Android API v2, but you must specify either coarse or fine
           location permissions for the 'MyLocation' functionality.
      --&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;meta-data
              android:name="com.google.android.geo.API_KEY"
              android:value="@string/google_maps_key" /&gt;
  
          &lt;activity android:name=".PlacePickerActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;!--
               The API key for Google Maps-based APIs is defined as a string resource.
               (See the file "res/values/google_maps_api.xml").
               Note that the API key is linked to the encryption key used to sign the APK.
               You need a different API key for each encryption key, including the release key that is used to
               sign the APK for publishing.
               You can define the keys for the debug and release targets in src/debug/ and src/release/.
          --&gt;
  
  
          &lt;activity
              android:name=".MapsActivity"
              android:label="@string/title_activity_maps"&gt;
  
          &lt;/activity&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>MapsActivity</p>
  
  <pre><code>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
  
  private GoogleMap mMap;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_maps);
      // Obtain the SupportMapFragment and get notified when the map is ready to be used.
      SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
              .findFragmentById(R.id.map);
      mapFragment.getMapAsync(this);
  }
  
  
  /**
   * Manipulates the map once available.
   * This callback is triggered when the map is ready to be used.
   * This is where we can add markers or lines, add listeners or move the camera. In this case,
   * we just add a marker near Sydney, Australia.
   * If Google Play services is not installed on the device, the user will be prompted to install
   * it inside the SupportMapFragment. This method will only be triggered once the user has
   * installed Google Play services and returned to the app.
   */
  @Override
  public void onMapReady(GoogleMap googleMap) {
      mMap = googleMap;
  
      // Add a marker in Sydney and move the camera
      LatLng sydney = new LatLng(-34, 151);
      mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
      mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
  }
  </code></pre>
  
  <p>}</p>
  
  <p>PlacePickerActivity</p>
  
  <pre><code>public class PlacePickerActivity extends AppCompatActivity {
  
      int PLACE_PICKER_REQUEST=1;
      TextView tvPlace;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_place_picker);
          tvPlace=findViewById(R.id.tv_Place);
      }
  
      public void goPlacePicker(View view) {
          PlacePicker.IntentBuilder builder=new PlacePicker.IntentBuilder();
          try{
              Log.e("error","1");
              startActivityForResult(builder.build(PlacePickerActivity.this),PLACE_PICKER_REQUEST);
  
          }catch(GooglePlayServicesRepairableException e)
          {
              Log.e("Repairable",e.toString());
  
              e.printStackTrace();
          }
          catch(GooglePlayServicesNotAvailableException e){
              Log.e("Not Available",e.toString());
              e.printStackTrace();
          }
  
      }
      @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data){
          if(requestCode == PLACE_PICKER_REQUEST){
              if(resultCode == RESULT_OK){
                  Log.e("Activity","2");
                  Place place=PlacePicker.getPlace(PlacePickerActivity.this,data);
                  Log.e("PlacePicker","3");
                  tvPlace.setText(place.getAddress());
              }
          }
  
      }
  }
  </code></pre>
  
  <p>Thanks in advance for any possible help..</p>