android - Google Maps APIv2 Authentication failure -
the error:
08-15 12:59:17.435: e/google maps android api(14665): failed load map. error contacting google servers. authentication issue (but due network errors).
the google console:
the manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.cefetmgrdctcc.sgtp" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="18" /> <permission android:name="com.cefetmgrdctcc.sgtp.permission.maps_receive" android:protectionlevel="signature"/> <uses-permission android:name="com.cefetmgrdctcc.sgtp.permission.maps_receive"/> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices"/> <uses-permission android:name="android.permission.access_coarse_location"/> <uses-permission android:name="android.permission.access_fine_location"/> <uses-feature android:glesversion="0x00020000" android:required="true"/> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <meta-data android:name="com.google.android.maps.v2.api_key" android:value="hidden key"/> <activity android:name="com.cefetmgrdctcc.sgtp.mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest>
the layout of map control:
<fragment android:id="@+id/googlemap" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.supportmapfragment" />
i've imported google play services project , marked on google api console services list "google maps api v2", "google maps api v3" , "google maps android api v2", seems map fragment still not being able authenticate.
map fragment blank grey square on middle of screen, ideas why happening?
hi having exact same problem. tried docs said nothing seemed work.
the thing worked me uninstalling , reinstalling application (not rebooting worked) because apparently if make 1 mistake on configuration system caches failed authentication , maps won't work after fixing configuration.
so try following docs , guides on configuring google maps api on android every time change on configuration uninstall , reinstall.
Comments
Post a Comment