[英]Google play throws a message (see below) when I try to upload signed app release .apk file
I am trying to upload an app to Google play from the Google play developer console, and it throws the following message when I try to upload an apk file: "You need to use a different package name because "com.example" is restricted."我正在尝试从 Google Play 开发者控制台将应用程序上传到 Google Play,当我尝试上传 apk 文件时它会抛出以下消息:“您需要使用不同的包名称,因为“com.example”受到限制。 ” The package that my app's classes belong to is called com.example.myname.converter.我的应用程序类所属的包称为 com.example.myname.converter。 What is the best way to fix the problem without messing things up?在不搞砸的情况下解决问题的最佳方法是什么?
In Android studio build gradle file change the package name.在 Android Studio 构建 gradle 文件中更改包名称。
The defaultConfig like this defaultConfig 像这样
applicationId "com.example.android.applicationname"
change that com.example package name更改那个 com.example 包名称
applicationId "com.yourcustomname.yourcustomname.applicationname"
then clean and rebuild project然后清理并重建项目
You need to specify a valid appId
.您需要指定一个有效的appId
。 An appId
like com.example
is, for sure, not the correct one.像com.example
这样的appId
肯定不是正确的。
For instance, if you app is from Facebook
an app id like com.facebook.app
is the correct choice.例如,如果您的应用程序来自Facebook
,那么像com.facebook.app
这样的应用程序 ID 就是正确的选择。
Se more information about the appId
here .在 此处查看有关appId
更多信息。
For updating your app id, just go to your app build.gradle
and change the field applicationId
.要更新您的应用程序 ID,只需转到您的应用程序build.gradle
并更改字段applicationId
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.