<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.poputkaonline"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET" />
<permission
android:name="com.example.poputkaonline.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.WAKE_LOCK" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" >
</uses-permission>
<uses-permission android:name="in.wptrafficanalyzer.locationroutedirectionmapv2.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-permission android:name="android.permission.CALL_PHONE" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<service android:name="com.library.GPSService" />
<activity
android:name="com.example.poputkaonline.DashboardActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.poputkaonline.LoginActivity"
android:label="@string/title_activity_login"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.ChoiceActivity"
android:label="@string/title_activity_choice"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.RegWithoutRegionActivity"
android:label="@string/title_activity_reg_without_region"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.RegwithoutregionStepTwoActivity"
android:label="@string/title_activity_regwithoutregion_step_two"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.RegWithoutRegionDriverActivity"
android:label="@string/title_activity_reg_without_region_driver"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.RegwithoutRegionDriverStepTwoActivity"
android:label="@string/title_activity_regwithout_region_driver_step_two"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.RegWithoutRegionStepThreeActivity"
android:label="@string/title_activity_reg_without_region_step_three"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.poputkaonline.MapActivity"
android:label="@string/title_activity_map"
android:screenOrientation="portrait" >
</activity>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBqgOoGExrrm5em04onPFTVktlLH5k04Mw" />
<activity
android:name="com.example.poputkaonline.ForgetPasswordActivity"
android:label="@string/title_activity_forget_password" >
</activity>
<provider
android:name="com.loaders.LoaderInbox$SimpleProvider"
android:authorities="com.loaders.loaderinbox" />
<provider
android:name="com.loaders.LoaderSent$SimpleProvider"
android:authorities="com.loaders.loadersent" />
</application>
</manifest>
在清单中重新安装后我只添加了
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
并更改了api_key。
我该怎么做让我的地图再次运作?感谢
11-21 15:54:19.759: E/GooglePlayServicesUtil(3185): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
11-21 15:54:19.819: D/libc(3185): [NET] getaddrinfo hn 19, servname NULL, ai_family 0+
答案 0 :(得分:0)
确保你的
机器人:名称= “com.google.android.maps.v2.API_KEY” android:value =“AIzaSyBqgOoGExrrm5em04onPFTVktlLH5k04Mw”&lt; ------
android:value是发布密钥
答案 1 :(得分:0)
您需要获取另一个api密钥。由于sha1哈希值的变化,我们在更改开发环境时需要更改api密钥。用新的钥匙替换旧钥匙,你就可以开始了。