Issue
I implemented an Android app a year ago using Google Maps v1, and now I need to fix a bug. The problem is, when I run the app from Eclipse on my hardware device the map is blank. In LogCat I get the error:
04-26 14:07:30.754: W/System.err(2354): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
I think this is an API key error, but over the past 2 days of searching Stack Overflow, Google and the Maps SDK website, I can't find a solution. Although this problem is addressed on Stack Overflow already, none of the solutions have worked for me. Hopefully some experienced person can help me out.
I know that Maps v1 is deprecated, and I intend to upgrade to v2. But right now I just need to get this bug fixed, and according to Google the existing API keys should continue to work.
One thing to note is that I recently moved my development environment from my PC to a Mac, making sure to use the same debug.keystore
file. I'm not sure if this is a red herring, but perhaps there is some setting or file I need to copy over from the old environment.
WHAT I HAVE TRIED:
- Checked the debug.keystore file was identical to the one on my old computer.
- Tried to check my API key is correct on the Google API Console, but it doesn't appear any more (probably because it's deprecated).
- Registered new API key for Maps v2 and tried to use it.
Solution
I think I've finally figured it out. The default expiry for a debug certificate is 365 days, and mine expired Sep 09 2012. This means I have to upgrade to Google Maps v2 to fix this bug, and I am absolutely spitting tacks, because this means I can no longer support Android 1.6 but will be forced to a minimum version of 2.2. This will cut out 8% of my users who can't upgrade due to fragmentation, and wasted 2 frustrating days of my time.
Why do Google make it so hard to use their maps on their own platform (Android)? It's so easy to create Google Maps apps for iOS in comparison. Although perhaps they are attempting to address this fragmentation with the Google Play SDK which can be downloaded independently of the Android version? Anyway, I am about to find out because my hand is being forced.
Grrr!
Answered By - Flyingkiwi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.