Problem building and running demo
I created a new map api key in the api console and added [my debug SHA1 fingerprint];com.google.maps.android.utils.demo
Update to my map api key in /demo/AndroidManifest.xml
gradlew assemble ... Execution failed for task ':library:signArchives'. Cannot perform signing task ':library:signArchives' because it has no configured signatory
Fail 1, cant sign the library.
Ok guess I dont need to use the signing plugin, it it will be signed with the debug key any way. And I dont need to upload the release to central repo so I remove plugins and tasks for signing and maven //apply plugin: 'maven' //apply plugin: 'signing' /signing { uploadArchives { def modifyPom(pom) { .. } /
gradlew assemble BUILD SUCCESSFUL
gradlew instrumentTest BUILD SUCCESSFUL
gradlew startDemo BUILD SUCCESSFUL
Click on Clustering demo
Fail 2
01-08 23:01:35.606 11111-12026/com.google.maps.android.utils.demo E/Google Maps Android API﹕ Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. 01-08 23:01:35.606 11111-12026/com.google.maps.android.utils.demo E/Google Maps Android API﹕ Ensure that the following correspond to what is in the API Console: Package Name: com.google.maps.android.utils.demo, API Key: [my new api key], Certificate Fingerprint: [my debug SHA1 fingerprint] 01-08 23:01:35.616 11111-12026/com.google.maps.android.utils.demo I/Google Maps Android API﹕ Failed to contact Google servers. Another attempt will be made when connectivity is established. 01-08 23:01:50.646 11111-12034/com.google.maps.android.utils.demo E/Google Maps Android API﹕ Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
Any Ideas?
I've just added a debug keystore that will work with the API key in the AndroidManifest file.
Simply check out the project and run ./gradlew startDemo