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

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

问题描述

我有一个谷歌地图Android应用程序,一切都运行良好。

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

为了将它发布在谷歌玩,我从项目改变了包名(旧包com.exmaple ..)----- Android的工具---重命名应用程序包

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天全站免登陆