更新时间:2023-01-11 14:52:50
1 我看到的第一个问题就在这里:
1. The first problem I see is here:
<fragment
class="com.google.android.gms.maps.SupportMapFragment"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"/>
删除此行: 类=com.google.android.gms.maps.SupportMapFragment
remove this line: class="com.google.android.gms.maps.SupportMapFragment"
和设置安卓名称
为:
android:name="com.google.android.gms.maps.SupportMapFragment"
2 从清单文件中删除此行:
2. Remove this line from the manifest file:
<uses-library android:name="com.google.android.maps" />
这是谷歌地图 API V1
许可,不应该使用 API V2
。
This is Google Maps API V1
permission and shouldn't be use in API V2
.
看看这个博客帖子,并确保正确地尽一切:
Take a look at this blog post and make sure are doing everything correctly:
3。您描述通常的问题从产生或使用API控制台注册API密钥,如果你是积极的,你所做的所有步骤正确,然后一个问题源于我建议你删除 debug.keystore 文件夹,编译在Eclipse中的一些项目(这将导致一个新的SHA1密钥),并使用控制台重新注册的关键。看看这篇博客,我写,并确保我正在做的所有的步骤正确的:
3. The problem you describing usually derives from a problem in generating or registering the API key using the API Console, If you are positive that you have made all the steps correctly then I suggest you to delete the debug.keystore folder, compile some project in Eclipse (this will result in a new SHA1 key) and register the key again using the console. Take a look at this blog post I wrote and make sure I are doing all the steps right: