Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
发布android应用程序错误:您需要使用不同的程序包名称,因为;com.xxxx“;已经存在于Google Play中_Android_React Native - Fatal编程技术网

发布android应用程序错误:您需要使用不同的程序包名称,因为;com.xxxx“;已经存在于Google Play中

发布android应用程序错误:您需要使用不同的程序包名称,因为;com.xxxx“;已经存在于Google Play中,android,react-native,Android,React Native,我使用react native制作应用程序,在play store上上传apk,并获得此问题: 发布android应用程序错误:您需要使用其他程序包名称,因为“com.xxxx”已存在于Google Play中 我的软件包名称它还连接到google services.jason(firebase analytics and AdMob) 如何正确更改软件包名称?您肯定需要为应用程序分配一个新的/唯一的软件包标识符。为此,您必须对以下内容进行更改: applicationId位于(/androi

我使用react native制作应用程序,在play store上上传apk,并获得此问题: 发布android应用程序错误:您需要使用其他程序包名称,因为“com.xxxx”已存在于Google Play中

我的软件包名称它还连接到google services.jason(firebase analytics and AdMob)


如何正确更改软件包名称?

您肯定需要为应用程序分配一个新的/唯一的软件包标识符。为此,您必须对以下内容进行更改:

  • applicationId位于(/android/app/build.gradle文件)
  • (/android/app/src/main/AndroidManifest.xml)中的包
  • 以及具有包ID的其他文件
但我建议您使用该软件包,该软件包将安全地更新应用程序和软件包名称


对于firebase(google services.json),您需要使用新创建的bundle id配置另一个应用程序,然后将更新的.json文件附加到项目。

您必须更改应用程序包名称,并在“google services.json”上更改此部分?“android_客户端_信息”:{“package_name”:“com.xxxx”}否,再次下载具有新包名的google-services.json我需要在firebase控制台中为android添加一个新应用程序,并下载google-services.json,旧应用程序删除?是的,这正是way@Ismeet如果您觉得这很有帮助,请向上投票:)