当我更改包名称时,我收到此错误“包名称无效”

问题描述

仅当我更改包名称时,如果我将其保留为相同的应用程序工作,我就会收到此错误 即使我尝试更改所有包但没有任何效果

apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
defaultConfig {
    applicationId "kamal.live.tv.watch.free"
    minSdkVersion 21
    targetSdkVersion 30
    versionCode 5
    versionName "5.0.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [onesignal_app_id:            'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',// Project number pulled from dashboard,local value is ignored.
                            onesignal_google_project_number: 'REMOTE']
}
buildTypes {
    release {
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
    }
}
buildTypes.each {
    it.buildConfigField 'String','NEMOSOFTS',NEMOSOFTS
    it.buildConfigField 'String','API_KEY',API_KEY
}
lintOptions {
    checkReleaseBuilds false
    // Or,if you prefer,you can continue to check for errors in release builds,// but continue the build even when errors are found:
    abortOnError false
}
sourceSets { main { assets.srcDirs = ['src/main/assets','src/main/assets/'] } }

}

static def getDate() {
new Date().format('yyyyMMdd')

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)