Android的 - 谷歌地图API第2版 - 不幸的是,应用程序已停止。强制关闭每次 [英] Android - Google Map API v2 - Unfortunately, application has stopped. Force closing every time
问题描述
大家好:)我发现了类似的主题在这里对使用谷歌地图API时强制关闭应用程序在Android中。我想几乎所有的东西,其次教程一步一步,并检查两次以上 - 每次出了问题,我的应用程序瞬间崩溃。我无法从谷歌运行,即使一个例子code。我试图在模拟器随SDK,Genymotion,我的HTC One X的 - 任何时候都死机一样:不幸的是,GMapsTest应用程序已停止。这是我的logcat,也许有些事我看不到。
Hi guys :) I found similar topics here about Force Closing applications in Android when using Google Map API. I tried almost everything, followed tutorials step by step and checked more than twice - everytime something goes wrong and my application crashes instantly. I am not able to run even an example code from Google. I tried on emulator distributed with SDK, Genymotion, my HTC One X - all times the same crash: "Unfortunately, GMapsTest application has stopped". Here's my logcat, maybe there's something I don't see.
logcat的: http://pastebin.com/dXk6X31t AndroidManifest: http://pastebin.com/WTNH7M2p Java的code: http://pastebin.com/JwzV1Vry XML布局: http://pastebin.com/eUX8Hgdy
Logcat: http://pastebin.com/dXk6X31t AndroidManifest: http://pastebin.com/WTNH7M2p Java code: http://pastebin.com/JwzV1Vry XML Layout: http://pastebin.com/eUX8Hgdy
感谢您的帮助! :D
Thanks for any help!! :D
推荐答案
现在的问题是在manifest文件。确保添加下面的元数据标签应用标签内
The problem is in the manifest file. Make sure the add the following meta-data tag inside the application tag
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"
/>
这篇关于Android的 - 谷歌地图API第2版 - 不幸的是,应用程序已停止。强制关闭每次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!