谷歌地图身份验证失败,包名称更改后 [英] google map authenticate failed, after package name changed

查看:46
本文介绍了谷歌地图身份验证失败,包名称更改后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有谷歌地图的安卓应用,一切正常.

I have an android app with a Google map, everything works good.

为了在Google play上发布,我从project----- Android tools---Rename Application Package 改了包名(旧包com.exmaple..)

In order to publish it in Google play, I changed the package name (old package com.exmaple..) from project----- Android tools---Rename Application Package

因此,我将使用我的新包名称生成一个新的 API 密钥.

So, I going to generate a new API key with my new package name.

我使用新密钥更改了清单.

I changed manifest with the new key.

     <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="xxxxxxxxxxxxnew keyxxxxxxxxxxxxx" />

但是,它没有用.它说身份验证失败.有什么想法吗?我错过了一些步骤吗?

But, it did not work. It said authentication failed. Is there any idea? Did I miss some steps?

提前致谢!

推荐答案

如果您说您已经使用 API 控制台 生成了新密钥并更改了应用程序中的 API 密钥以及更改了这两个权限中的包名称:

If you are saying that you have generated the new key using the API Console and changed the API key in your application as well as changed the package name in those two permissions:

<permission android:name="your.application.package.permission.MAPS_RECEIVE"  
            android:protectionLevel="signature"/>
<uses-permission android:name="your.application.package.permission.MAPS_RECEIVE"/>

然后尝试从手机中删除您的应用程序,因为应用程序通常会将旧密钥保存在缓存中,然后尝试重新安装.

Then try to remove your application complete from the phone, as application is usually saves the old key in the cache, and then try to re-install it.

这篇关于谷歌地图身份验证失败,包名称更改后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆