映射应用程序在启动时崩溃

时间:2014-09-29 05:33:19

标签: android xml google-maps android-manifest

我按照DrFraser的教程学习Google地图教程,并按照所有步骤操作。但是,一旦我启动它,地图就会崩溃。我的androidmanifest.xml在下面。我认为这部分存在一些问题。请仔细阅读。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="biki.mapsdemo.com"
    android:versionCode="1"
    android:versionName="1.0" >

<uses-sdk
     android:minSdkVersion="11"
     android:targetSdkVersion="17" />

<permission 
     android:name="biki.mapsdemo.com.permission.MAPS_RECEIVE"
     android:protectionLevel="signature"   />

<uses-permission android:name="biki.mapsdemo.com.permission.MAPS_RECEIVE"/>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permssion.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="AI----1QMTtRP7wkMOnCPswB84MzenVib9D70"
         />

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version"/>

    <activity
        android:name=".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>

0 个答案:

没有答案