How To/error In Declaring Google-play-services-component
Solution 1:
At the very bottom of that page, after setting up the project properties, it says that I need to "declare library components in the manifest file"
For Maps V2, there are no such components that you need to worry about. This would only be if there were activities, services, or other components published by the library project that you were trying to use without subclassing them.
How can I fix this?
Just delete those two <activity>
lines.
Solution 2:
https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw
here's quick guide to google maps api v2. I used this in my project at the office.
Unable instantiate android.gms.maps.MapFragment
If you having problems with the MapFragment or google play services library use this stackoverflow thread to troubleshoot.
If you having trouble with getting your SHA1 fingerprint here's the steps.
Open your DOS command line or terminal if you are using linux.
cd (change directory) to the directory of Java\jdk1.7.0\bin of your JDK 7. In my case it is C:\Program Files\Java\jdk1.7.0\bin. To make it a lot easier add that directory to your system path.
Execute the keytool of your java and use your debugging keystore or official keystore. (refer to the image as example).
Generally the syntax is, keytool.exe -list -alias androiddebugkey -keystore "[directory of your keystore]" -storepass android -keypass android
copy and paste the SHA1 fingerprint keep it and use it to generate the google map api key on the api console. It should be on API access then Google Maps API V2.
There you append the name of the package of your app in your SHA1 fingerprint. Something like this.
55:87:D6:B4:60:35:AD:CA:C8:86:84:7D:62:D2:5B:3D:18:34:EB:16;com.my.package
Finally you should have now your precious map api key and follow the quick and troubleshooting links that I posted.
One more thing JDK7 by default produces SHA1 if you will execute the command above. If you are using JDK6 it produces MD5 fingerprint. I think you need to add -v at the end of the command so that JDK6 will give you SHA1. In my case here I have JDK7 so when I add - v it will show you different fingerprints.
Have fun :D
Post a Comment for "How To/error In Declaring Google-play-services-component"