Skip to content

Instantly share code, notes, and snippets.

@Martin1982
Created June 17, 2014 13:15
Show Gist options
  • Save Martin1982/a63f1bb966e1a9962dc4 to your computer and use it in GitHub Desktop.
Save Martin1982/a63f1bb966e1a9962dc4 to your computer and use it in GitHub Desktop.
Using Ti.Map in Genymotion

Using the Android Ti.Map module in Genymotion

When working on a new Titanium project I came across a requirement which involved using maps on iOS and Android. Since Google has changed the way the API keys work I couldn't rely on the V1 method which I used in the past. Luckily Titanium provides the ti.map add-on module with perfect documentation on how to set it up for the V2 API keys.

Note: doublecheck if this module isn't already installed in the documented directory, in my case it was already present.

When I was ready to run my code and booted up my Genymotion emulator I got the following error:

[ERROR] :  GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

After some research I found out that you don't only need to have the Google Play Services installed with your SDK, but also your target device needs to have the Google Play Services running and Genymotion just doesn't come with this. Determined as ever I went on to search for a solution, that's when I stumbled upon ZeezOnline's blog and found an interesting post on how to get the Google Play Services running on Genymotion http://blog.zeezonline.com/2013/11/install-google-play-on-genymotion-2-0/

The biggest catch with this solution is that you match the Android version with the zip file your download. It's again all pretty well documented so you shouldn't run into any troubles.

As soon as you have the Google Play Store available on your virtual device it's time for the final steps; Open up the Google Play store update the currently installed software and install the Maps app.

Once done you'll be able to run your application on Genymotion with proper Maps support.

Running maps in Genymotion

Martin de Keijzer

Martin is a software engineer and community manager at Ibuildings in the Netherlands. He started programming with PHP and picked up Javascript along the way, he has become very knowledgeable with both in the past decade. He is also doing a lot of mobile development and quickly learned that mastering Javascript was the key to device agnostic success. These days many of his projects using open web technologies are already available using app stores and the web as a distribution channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment