Я интегрирую сборщик Google Place в Android, но он закрывается после запуска.
Код :
PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
try {
Intent intent = builder.build(this);
startActivityForResult(intent, PLACE_PICKER_REQUEST);
} catch (GooglePlayServicesRepairableException e) {
e.printStackTrace();
AlertDialogHelper.showAlertDialog(this,e.getLocalizedMessage());
} catch (GooglePlayServicesNotAvailableException e) {
e.printStackTrace();
AlertDialogHelper.showAlertDialog(this,e.getLocalizedMessage());
}
Error
BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/placesandroid/v1/search?key=****************PpdwBIWzGwY
2019-06-20 22:51:08.222 2115-13410/? E/Places: Places API for Android does not seem to be enabled for your app. See https://developers.google.com/places/android/signup for more details.
2019-06-20 22:51:08.223 2115-13410/? E/AsyncOperation: serviceID=65, operation=SearchPlaces
OperationException[Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}]
at bhjl.a(:com.google.android.gms@17455021@17.4.55 (040408-248795830):1)
at bhjn.a(:com.google.android.gms@17455021@17.4.55 (040408-248795830):23)
at aaha.run(:com.google.android.gms@17455021@17.4.55 (040408-248795830):19)
at bjyv.run(:com.google.android.gms@17455021@17.4.55 (040408-248795830):2)
at smu.b(:com.google.android.gms@17455021@17.4.55 (040408-248795830):37)
at smu.run(:com.google.android.gms@17455021@17.4.55 (040408-248795830):18)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at ssz.run(:com.google.android.gms@17455021@17.4.55 (040408-248795830))
at java.lang.Thread.run(Thread.java:760)
Консоль API Google
![enter image description here](https://i.stack.imgur.com/hhai0.png)
![enter image description here](https://i.stack.imgur.com/59qZz.png)
* * 1030
![enter image description here](https://i.stack.imgur.com/bx0SX.png)