简体   繁体   English

当我尝试上传已签名的应用程序版本 .apk 文件时,Google Play 会抛出一条消息(见下文)

[英]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.

相关问题 我应该在Google Play,签名的APK或项目中上载哪个.apk文件->构建 - Which .apk file should i upload on google play, signed apk or in projects-->build 当签名密钥由 Google 生成时,我可以将使用上传密钥签名的 APK+OBB 上传到 Google Play 吗? - Can I upload an APK+OBB signed with upload key to Google Play when the signing key is generated by Google? 当我尝试在启用了Proguard的android应用中导出带签名的apk文件时遇到transformClassAndResourcWithProguardForRelease错误? - transformClassAndResourcWithProguardForRelease error when I try export signed apk file in android app with proguard enabled? Android 发布 APK(已签名)中的哨兵上传失败消息? - sentry upload failure message in Android release APK(signed)? 当我按下生成签名的apk时,我只得到app-release-unaligned.apk - I get only app-release-unaligned.apk when I press generate signed apk 当应用签名的APK安装在设备上但无法正常工作时,Google Map才能正常工作 - Google Map work when app signed apk install in device but not work play store apk 是否可以在Android Studio中使用已发布的已签名APK构建App Bundle? 我想将APK迁移到Play商店的应用包 - Is it possible to build an App Bundle using an already release signed APK, in Android Studio? I want to migrate apk to app bundle for play store 我可以上传应用程序包 .aab 文件作为 .apk(应用程序签名的 APK)文件的更新吗? - Can I upload the app bundle .aab file as an update of .apk (app signed APK) file? 您上传了未使用上传证书签名的APK - 即使我使用的是Google Play Signing - You uploaded an APK that is not signed with the upload certificate - even though I am using Google Play Signing APK已使用相同证书签名并经过验证,但仍无法上传到Google Play - APK Signed with same certificate and verified, still not able to upload to Google play
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM