我最近添加了一个mapview到我在Android市场上的应用程序。当我在模拟器和手机上使用google maps api调试密钥测试应用程序时,一切正常。然后我将map api密钥更改为与我自己的密钥库匹配的密钥。我发布了应用程序标记,下载了应用程序,进入了mapview并且没有出现maptiles ...我对为什么会发生这种情况一无所知。
我的清单中确实有这个:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="com.google.android.maps" />
我确实在属于我的mapview的xml文件中有这个:
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="my key here" <--- This is where I've put my key />
应用程序中的其他所有内容都非常有用,如叠加层等。非常感谢任何我可能忘记的提示......!
答案 0 :(得分:0)
Release的Google Map API密钥与调试不同。再拿一次。