谷歌授权

问题描述:

我种基于谷歌地图应用程序的新的和被它。我在试图用手用过以下mainfest谷歌授权

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.abhishekbietcs.locomap" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="15" /> 
<permission 
     android:name="com.abhishekbietcs.locomap.permission.MAPS_RECEIVE" 
     android:protectionLevel="signature"/> 
    <uses-permission android:name="com.abhishekbietcs.locomap.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:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.abhishekbietcs.locomap.Mapme" 
     android:label="@string/title_activity_mapme" > 
     <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="my key" /> 
</application> 

我得到这个代码

keytool.exe -list -alias androiddebugkey -keystore ".....\.android\debug.keystore" -storepass android -keypass android -v 
我调试cerificate SH1 fngrprint

这是我的XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context=".Mapme" > 
<fragment xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/map" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
class="com.google.android.gms.maps.SupportMapFragment"/> 

现在whene我在手机中安装,谷歌授权失败URE出现在日志cat.please帮助我,在那里我没有错,在此先感谢

+0

我们可以有完整的logcat吗?另外,您是否启用了不是来自手机市场的应用程序安装? – 2013-02-09 15:24:35

还有,你必须创建应用程序,它使用谷歌地图API之前采取以下几个步骤:

  • 创建谷歌API在谷歌API控制台项目 (https://code.google.com/apis/console
  • 使Android的谷歌地图API(在服务选项卡)
  • 创建新客户端ID(你应该输入SHA1键,您的应用程序包名称)

你做过所有这些了吗?如果是,请提供包含授权失败信息的logcat输出。

+0

这里是日志猫 – 2013-02-09 15:27:28

+0

这里表示哪里?我没有看到任何链接。你有没有完成我提到的所有步骤? – 2013-02-09 15:41:40

+0

感谢@damian为您的关注,我已启用了一个错误的服务,它是谷歌地图V2,我cahnged它谷歌Android地图V2并生成一个新的密钥,它工作:) – 2013-02-09 16:17:59