Android MapView应用程序正在崩溃

Android MapView应用程序正在崩溃,android,google-maps,android-emulator,Android,Google Maps,Android Emulator,我正在尝试制作一个Android地图应用程序。因为我对这一切都不熟悉,所以我决定创建一张地图,显示一个按钮和数字时钟 当我运行项目时,emulator会加载,但当它尝试加载应用程序时,它会强制关闭 Mymain.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orient

我正在尝试制作一个Android地图应用程序。因为我对这一切都不熟悉,所以我决定创建一张地图,显示一个按钮和数字时钟

当我运行项目时,emulator会加载,但当它尝试加载应用程序时,它会强制关闭

My
main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <DigitalClock android:text="@+id/DigitalClock01"
        android:id="@+id/DigitalClock01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"></DigitalClock>
    <Button android:text="@+id/Button01"
        android:layout_width="wrap_content"
        android:id="@+id/Button01"
        android:layout_height="wrap_content"></Button>
    <com.google.android.maps.MapView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:apiKey="xyz_my_key" />
</LinearLayout>
我还添加了互联网使用许可

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

为什么它会崩溃

错误日志中的最后一项:

运行时没有命令输出:“am” start-n com.example.android.google.api/com.example.android.google.api.com.example.android.api.MapsDemo -a android.intent.action.MAIN-c android.intent.category.LAUNCHER'on 设备仿真器-5554


我没有正确地设置项目。我已经返回并复制并粘贴了源代码,嘿,请注意,它可以正常工作

很抱歉听起来很愚蠢,但我该如何检查?发布错误日志中的最后消息,否则我们将无法找到问题的原因,这几乎可以是任何东西。如果您使用上的教程进行了设置,那么我打赌您的问题是您没有向模拟器发送GPS定位,因此应用程序将抛出
NullPointerException
。请使用新信息编辑您的答案,而不是作为注释进行响应。octavian我如何向模拟器发送GPS定位仿真器?
<uses-permission android:name="android.permission.INTERNET"></uses-permission>