【问题标题】:Google play store not recognizing new package name of appGoogle Play 商店无法识别应用程序的新软件包名称
【发布时间】:2018-09-10 21:37:58
【问题描述】:

我正在尝试将应用发布到 Playstore。

以前的包名称是 bk.myapp。现在我已经从清单文件本身将它重构为其他东西。

现在 bk.myapp 到处都被新的包名替换了。 bk.myapp 甚至没有一次出现。

现在我已经使用新的密钥库等生成了一个新的 apk 文件。

现在我已将此 apk 上传到游戏控制台。它显示包名称为 bk.myapp 这是不合逻辑的。有人可以帮助我了解实际发生的情况吗?

编辑:已添加清单文件

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="bharat.sos_tarp">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
    <uses-permission android:name="android.permission.SEND_SMS"/>

    <application

        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <service android:name="bharat.sos_tarp.FirebaseListeneingService"/>

        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value=""/>
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version"/>

        <activity android:name="bharat.sos_tarp.Login">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name="bharat.sos_tarp.MainActivity">
        </activity>
        <activity android:name="bharat.sos_tarp.NotificationReceiver">
        </activity>
        <activity android:name="bharat.sos_tarp.MapActivity">
        </activity>
        <activity android:name="bharat.sos_tarp.AlertSuccessActivity">
        </activity>
        <activity android:name="bharat.sos_tarp.showContactsRecview.ViewContacts">
        </activity>
        <activity android:name="bharat.sos_tarp.addContactsRecview.AddContacts">
        </activity>

        <service android:name="bharat.sos_tarp.LockService" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </service>
    </application>

</manifest>

【问题讨论】:

  • 包名在build.gradle文件中设置
  • @VladyslavMatviienko 谢谢,这能解决我的问题吗?
  • 当我尝试使用新的包名构建时显示一些错误
  • 错误:任务 ':app:processDebugGoogleServices' 执行失败。 > 找不到与包名称“new_name_here”匹配的客户端
  • 那是因为你的谷歌服务配置是为旧包生成的。您必须注册新项目,并重新生成配置文件

标签: java android google-play apk google-play-console


【解决方案1】:

您需要确保在 build.gradle 中正确设置了 applicationId

defaultConfig {
        applicationId "new_package_name"
        ...
    }

【讨论】:

    猜你喜欢
    • 2018-06-01
    • 1970-01-01
    • 2012-12-13
    • 2013-03-21
    • 1970-01-01
    • 1970-01-01
    • 2019-11-17
    • 1970-01-01
    • 2017-06-10
    相关资源
    最近更新 更多