The Google Play services resources were not found / Maps Api V2

You must Login before you can answer or comment on any questions.

I'm trying to update one of my apps to use the Maps V2 api, but I keep getting this errors on console, and them my map appears blank, just with the myLocation button and the zoom buttons.

I'm sure that the API key is correct as is the package, checked it 1000 times.

Using TI 3.1.3GA

[WARN][dalvikvm(31882)] VFY: unable to resolve static field 1020 (MapAttrs) in Lcom/google/android/gms/R$styleable;
[ERROR][GooglePlayServicesUtil(31882)] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[INFO][Adreno200-EGL(31882)] <qeglDrvAPI_eglInitialize:265>: EGL 1.4 QUALCOMM Build: Iabe52cfaeae4c5fab1acacfe6f056ba15fa93274
[ERROR][GooglePlayServicesUtil(31882)] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[INFO][GCoreUlr(  890)] Successfully inserted location
[INFO][GCoreUlr(  890)] Not calling LocationReportingService, hasMoved: false, elapsed millis: 817752, request: Phone
[INFO][Choreographer(31882)] Skipped 50 frames!  The application may be doing too much work on its main thread.
[INFO][GetJar SDK [com.zeptolab.ctrexperiments.google.paid](31849)] GetJarConfig()::getInstance() -- re-using existing GetJarConfig instance for appToken=85cebc8c-f819-4e47-88e0-60c92902d84f
[WARN][ActivityThread(31882)] ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader());
[ERROR][Google Maps Android API(31882)] Authorization failure.  Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
[ERROR][Google Maps Android API(31882)] Ensure that the following correspond to what is in the API Console: Package Name: com.ezoom.marcopolo.posvendas, API Key: AIzcSyCi8ZVz6XzNjbfqT4eQCEy2ffIBmDx77lI, Certificate Fingerprint: CCE37F08FA039C8807BCCBAB7B8861F4759D479F
[INFO][Google Maps Android API(31882)] Failed to contact Google servers. Another attempt will be made when connectivity is established.
[ERROR][Google Maps Android API(31882)] Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).

— asked 1 year ago by Ezoom Digital Experience
2 Comments
  • Extra Info:

    MapModule.isGooglePlayServicesAvailable() returns SUCCESS;

    SDk Tools: 22.1.1

    Build/Platform Tools 18.0.1

    Play Services Rev 12

    — commented 1 year ago by Ezoom Digital Experience

  • OK I managed to fix this problem by deleting my project at Google Api Console and then recreating everything again, no Idead about what was happening.

    — commented 1 year ago by Ezoom Digital Experience

6 Answers

I know this thread is a bit old. But since I just spent four hours tracking down the solution to the same problem testing an app with the new 3.2 RC release, I thought I'd post my solution here anyway.

I was getting this error building an existing app (ran fine with 3.1.x releases) to a device (Galaxy Nexus), the Google emulator, and the Genymotion emulator. The Play Services missing message turned out to be a distractions.

For me, the problem was that I was setting the map type to one of the old constants.

Wrong: STANDARD_TYPE

Right: NORMAL_TYPE

// in my alloy.js file
Alloy.Globals.Map = require('ti.map');
 
// in my TSS file
"#mapView" : {
   mapType: Alloy.Globals.Map.NORMAL_TYPE
}
Changing that fixed the issue for me.

guys make sure you enable the "Google Maps Android API v2" for your app in google console

— answered 11 months ago by sameeh harfoush
answer permalink
1 Comment
  • Ok, I had read this advice and thought this is good but not helping in my case as I had gone through the Google console procedure carefully and checked all bits and pieces of it several times already. Nevertheless I had missed the very point of pressing the on/off button on the console page 'Services [All]' for service 'Google Maps Android API v2' because I was only starring on page 'API Access' all the time. Stupid me...

    — commented 9 months ago by Matthias Burbach

I've fixed this problem when I've detected that Titanium 3.2.0 has changed my keystores without respecting run/debug configurations saved previously. When I published my app Titanium had selected the debug keystore, and when I selected to debug my app Titanium had used the publish keystore incorrectly.

Therefore, Titanium detects GooglePlayServices properly, but fails keystores or API Keys associated to work with Google Maps correctly.

— answered 10 months ago by Carlos Luis Seva
answer permalink
6 Comments
  • Have you filed a Jira ticket for this? Or checked to see if it's a known issue? Please do so if not.

    — commented 10 months ago by Tim Poulsen

  • can you please explain how did you manage the keystores and steps to fix the problem?

    — commented 10 months ago by sameeh harfoush

  • In my case, I've fixed GooglePlayServicesUtil error following these steps when I was migrating from 3.1.3 to 3.2.0:

    First: check if Google Play Services is installed correctly on device. I reinstalled it just in case.

    Second: using isGooglePlayServicesAvailable() always returned SUCCESS.

    Third: change map type as Tim has commented: STANDARD_TYPE -> NORMAL_TYPE.

    Fourth: As the problem persisted I read several post about to renew API keys in the google console, but I noticed that maps in current version of my app on Google Play working properly, so I decided to take a look at my keystores assuming that my current keys were still operational.

    In my particular case, keystores have the same name but different paths placed outside Titanium SDK folder (../keystores/debug and ../keystores/release). When I reviewed debug/run configurations, I detected Titanium had interchanged keystores between configurations when I upgraded to 3.2.0 (and also had removed passwords stored..). Finally, I modified configurations and maps come back to work correctly.

    Hope you serve. Greetings

    — commented 10 months ago by Carlos Luis Seva

  • Show 3 more comments

I have the same problem!

I have "Google Maps Android API v2" enabled in google console and i have GooglePlayService.

this a part of code:

var rc = MapModule.isGooglePlayServicesAvailable();
if(rc == MapModule.SUCCESS ) Ti.API.info('Google Play services is installed.');
and this is the log
[ERROR] :  GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
 
[INFO] :   Google Play services is installed.
I have GooglePlayService, so why the error GooglePlayServicesUtil ???

Please follow [this link] (http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_Android)

http://developer.android.com/google/play-services/index.html

With Google Play services, your app can take advantage of the latest, Google-powered features such as Maps, Google+, and more,
For development, you must have the Google Play Services SDK installed on your system. For the app to work on device, you must have the Google Play Services installed.

All information is available in Google Maps v2 for Android

— answered 1 year ago by Stephen Feather
answer permalink
4 Comments
  • It's already downloaded, evertything was downloaded from Android SDK Manager.

    SDk Tools: 22.1.1 Build/Platform Tools 18.0.1 Play Services Rev 12

    — commented 1 year ago by Ezoom Digital Experience

  • Pardon me while I clear my throat,

    YOU MUST HAVE GOOGLE PLAY SERVICES INSTALLED ON THE DEVICE

    — commented 1 year ago by Stephen Feather

  • How do I install google play services on the device. And how can I check in code if the device has it? Because now my app is crashing and it's not a nice behavior if the device doesn't have google play services installed

    — commented 10 months ago by Filip Heidfors

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!