Crashlytics 构建 ID 丢失。这通常发生在您的应用构建配置中缺少 Crashlytics Gradle 插件时。
The following build configuration is used: Use FirebaseBom version 1.0.0-alpha01. The following dependencies are integrated: andResGuard is not usable (i.e. the configuration is not valid). Refer to the whitelist configuration of andResGuard. andResGuard { // mappingFile = file("./resource_mapping.txt") mappingFile = null // use7zip = true // useSign = true // enable this switch to keep the original path of all resources, only obfuscate the resource names. 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_*", ] // set this value to obfuscate the arsc name list to the same name, reducing the size of the string constant pool. fixedResName = "arg" // enable this switch to merge all resources with the same hash value, but please do not rely too much on this function to remove redundant resources. mergeDuplicatedRes = false compressFilePattern = [ "*.png", "*.jpg", "*.jpeg", "*.gif", ] // sevenzip { artifact = 'com.Tencent.mm:SevenZip:1.2.21' // path = "/usr/local/bin/7za" } // optional: if not set, the final apk will be overwritten by default. finalApkBackupPath = "${project.rootDir}/final.apk" // optional: specify the digest algorithm when generating the jar file for v1 signature. The default value is "SHA-1". digestalg = "SHA-256" }
内容来源: shwenzhang/AndResGuard