當實現谷歌地圖API,我得到了黑屏和這些日誌:谷歌地圖V2在Android模擬器
未能找到com.google.android.gsf.gservices
提供商信息無法找到供應商com.google.settings的信息
我覺得我的密鑰有問題。因爲當我改變鑰匙。我仍然有上面的同一個日誌。我用SHA1取得了我的鑰匙。 這是我的清單
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mapdemo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<permission
android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.mapdemo.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.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" >
<activity
android:name="com.example.mapdemo.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>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="abcdef"/>
</application>
</manifest>
這是我的日誌:
05-10 15:57:00.460: E/ActivityThread(1168): Failed to find provider info for com.google.settings
05-10 15:57:00.480: E/ActivityThread(1168): Failed to find provider info for com.google.settings
05-10 15:57:00.670: D/dalvikvm(1168): GC_CONCURRENT freed 300K, 3% free 11260K/11591K, paused 80ms+4ms, total 145ms
05-10 15:57:00.670: D/dalvikvm(1168): WAIT_FOR_CONCURRENT_GC blocked 13ms
05-10 15:57:00.780: E/ActivityThread(1168): Failed to find provider info for com.google.android.gsf.gservices
05-10 15:57:00.790: E/ActivityThread(1168): Failed to find provider info for com.google.android.gsf.gservices
升級到v3谷歌v2已過時 – 2013-05-10 09:13:52
@RachelGallen您可以發佈鏈接以支持相同的.https://developers.google.com/maps/documentation/android/intro。和https://developers.google.com/maps/documentation/android/v1/ api v1被取消 – Raghunandan 2013-05-10 09:17:31
https://developers.google.com/maps/documentation/javascript/basics#Mobile – 2013-05-10 09:20:28