You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

能否后续修改华为AppGallery Connect项目包名?包名拼写错误如何修正?

Hey there, I’ve dealt with this exact scenario a few times when working with AppGallery Connect, so let’s break this down clearly for you:

Can You Edit the Package Name of an AppGallery Connect Project?

Absolutely—you can modify the package name of an existing AppGallery Connect project, but the process and limitations depend on where your app is in its lifecycle.

Step-by-Step Guide to Fixing a Misspelled Package Name

First, Assess Your App’s Status

  • If your app is still in development (not published to AppGallery, no core HMS services like Push Kit or IAP configured yet), the process is straightforward.
  • If you’ve already published the app or set up dependent services, you’ll need to do some extra cleanup to avoid breakage.

Modify the Package Name in AGC

  1. Log into the AppGallery Connect console and navigate to your target project.
  2. On the project homepage, click the name of the app with the misspelled package name to enter its detail page.
  3. From the left-side menu, select App Information.
  4. In the "Basic App Information" section, look for the "Package Name" field—you’ll see a small pencil icon next to it. Click that to edit.
  5. Type in the correct package name, then hit Save.

Critical Post-Modification Checks

  • Update Local Project Settings: Don’t forget to sync the package name in your Android project. Update the applicationId in your app-level build.gradle file, and ensure the package attribute in AndroidManifest.xml matches the new value.
  • Refresh AGC Configuration: Download the updated agconnect-services.json file from the AGC console and replace the old one in your local project. This ensures your app can communicate correctly with HMS services.
  • Published Apps? Proceed With Caution: If your app is already live on AppGallery, changing the package name means you’ll need to submit a brand new version for review. Note that existing users won’t get an automatic update to the new package name—this can split your user base, so only do this if absolutely necessary.

内容的提问来源于stack exchange,提问作者Alize Dronna

火山引擎 最新活动