首页 文章

您需要使用不同的包名称,因为“com.caspianz.hayatkhan.flashlight”已被您的其他应用程序使用

提问于
浏览
-1

我在谷歌播放控制台中未发布我的应用程序之一,现在我想上传相同的应用程序更改名称(以前的名称闪光灯)(新名称FlashTorch),但它给了我这个错误{你需要使用不同的包名,因为"com.caspianz.hayatkhan.flashlight"已经被你的其他一个应用程序使用了 . 我已经从Hayatkhan更改了我的计算机名称,这可能是此错误的问题 . changed package name snip还将ApplicationId更改为Build.gridle中的新包名(FlashTorch) . 需要你的善意建议

2 回答

  • 0

    您是否在Gradle(app config)中更改了包名称

    defaultConfig {
            applicationId "app.gsm.com.myapp"
            minSdkVersion 17
            targetSdkVersion 27
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            multiDexEnabled true
        }
    

    enter image description here

  • 1

    转到gradle文件:

    enter image description here

    并更改此行:
    enter image description here

    我注意到您要将应用程序上传到Play商店,请注意商店中的每个应用程序都有自己的包 . 您也无法在自己的设备上安装多个具有相同包名称的应用

相关问题