I am trying to implement my first activity on Google Maps in a demo application for Android. I activated the API key in the developer console and copied it to the maps_api.xml file. I load activity using code:
Intent myInt = new Intent(view.getContext(), maps_activ.class);
startActivity(myInt);
The application starts and the activity loads with a blank screen. I get several error logs.
At startup:
GoogleService failed to initialize, status: 10, Missing expected resource: "R.string.google_app_id" to initialize Google services. Possible reasons are missing the google-services.json or com.google.gms.google-services gradle plugin. Scheduler not installed. Do not log error / warning. Download not possible. Failed to install the application.
At startup:
Server authentication failed. Authorisation Error. For proper map setup, see https://developers.google.com/maps/documentation/android-api/start . In the Google Developer Console ( https://console.developers.google.com ) Make sure that the "Google Maps Android API v2" is enabled. Make sure that the following Android key exists: API key: YOUR_KEY_HERE Android Application (;): 13: 10: 51: FC: EB: 51:16: E3: 5 ......., etc.
Stackoverflow, . , - .
: Google Maps Android API v2, Google.