Can't make google maps v2 to work

2019-09-09 17:44发布

问题:

I tried a lot of examples but still can't get it to work! I have a grid with no maps and " couldn't get connection factory client".

I tried here and here and here and many others. I tried to run it and on device but still the same.

Any ideas here?Any other good tutorial?

Thank you!

回答1:

I see that you have tried my tutorial. The problem you describe usually happens when there is a problem with your key.

Please go over the next tutorial as well for getting your key:

Google Map API V2 Key

it this doesn't help you, try to delete the debug.keystore folder and run any android project to recreate a new key, and perform all the process of associating your key to your project using the console all over again.

And check again that you are adding all the permissions from the first tutorial in you manifest file.



回答2:

this occurs when you use different key for the app in the manifest than the actual google project key. Try rechecking the key. I had the same problem, and figured it out the same way. It has nothing to deal with the code. Good Luck!