Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. #529

Open
Kola-Chao opened this issue Nov 3, 2023 · 0 comments

Comments

@Kola-Chao
Copy link

使用新版本的firebasebom集成了,不实用andResGuard是可以正常使用的(也就是配置都是正常的)
参考whitlist配置了andResGuard
andResGuard {
// mappingFile = file("./resource_mapping.txt")
mappingFile = null
// use7zip = true
// useSign = true
// 打开这个开关,会keep住所有资源的原始路径,只混淆资源的名字
keepRoot = true
whiteList = [
//https://github.com/shwenzhang/AndResGuard/blob/master/doc/white_list.md
// for your icon
"R.drawable.icon",
// for fabric
"R.string.com.crashlytics.*",
// for google-services
"R.string.google_app_id",
"R.string.gcm_defaultSenderId",
"R.string.default_web_client_id",
"R.string.ga_trackingId",
"R.string.firebase_database_url",
"R.string.google_api_key",
"R.string.google_crash_reporting_api_key",
"R.string.project_id",
"R.string.storage_bucket",
"R.string.google_storage_bucket",
"R.string.fcm_fallback_notification_channel_label",
// for firebase crashytics
"R.bool.com.crashlytics.useFirebaseAppId",
"R.string.com.crashlytics.useFirebaseAppId",
"R.string.google_app_id",
"R.bool.com.crashlytics.CollectDeviceIdentifiers",
"R.string.com.crashlytics.CollectDeviceIdentifiers",
"R.bool.com.crashlytics.CollectUserIdentifiers",
"R.string.com.crashlytics.CollectUserIdentifiers",
"R.string.com.crashlytics.ApiEndpoint",
"R.string.io.fabric.android.build_id",
"R.string.com.crashlytics.android.build_id",
"R.bool.com.crashlytics.RequireBuildId",
"R.string.com.crashlytics.RequireBuildId",
"R.bool.com.crashlytics.CollectCustomLogs",
"R.string.com.crashlytics.CollectCustomLogs",
"R.bool.com.crashlytics.Trace",
"R.string.com.crashlytics.Trace",
"R.string.com.crashlytics.CollectCustomKeys",

        //other
        "R.font.*",
        "R.id.constraint*",
        "R.string.tt_request_permission_*",
        "R.id.mtrl_*",
        "R.string.res_*",
        "R.bool.res_*",
        "R.id.res_*",
        "R.string.common_google_*",

]
// 设置这个值,会把arsc name列混淆成相同的名字,减少string常量池的大小

// fixedResName = "arg"
// 打开这个开关会合并所有哈希值相同的资源,但请不要过度依赖这个功能去除去冗余资源
mergeDuplicatedRes = false
compressFilePattern = [
".png",
"
.jpg",
".jpeg",
"
.gif",
]
// sevenzip {
// artifact = 'com.tencent.mm:SevenZip:1.2.21'
// //path = "/usr/local/bin/7za"
// }

/**
 * 可选: 如果不设置则会默认覆盖assemble输出的apk
 **/
// finalApkBackupPath = "${project.rootDir}/final.apk"

/**
 * 可选: 指定v1签名时生成jar文件的摘要算法
 * 默认值为“SHA-1”
 **/
// digestalg = "SHA-256"

}
运行后报错:The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant