[英]How to disable uploading mapping file of Firebase Crashlytics for alpha and beta version?
I want to disable the uploading mapping file to the Firebase server for alpha and beta build.我想禁用将映射文件上传到 Firebase 服务器的 alpha 和 beta 版本。
My grade buildTypes:我的等级 buildTypes:
buildTypes {
release {
minifyEnabled true
debuggable false
useProguard false
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
beta {
minifyEnabled true
debuggable true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}
alpha {
minifyEnabled true
debuggable true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}
}
But after adding this code:但是在添加这段代码之后:
firebaseCrashlytics {
mappingFileUploadEnabled false
}
I have this error and I don't know how to fix it:我有这个错误,我不知道如何解决它:
No signature of method: build_1dvhq7u1hv066n9hrxkm7yggx.android() is applicable for argument types: (build_1dvhq7u1hv066n9hrxkm7yggx$_run_closure1) values: [build_1dvhq7u1hv066n9hrxkm7yggx$_run_closure1@48779342]
I had the same problem.我有同样的问题。 error code:
错误代码:
debug{
firebaseCrashlytics {
mappingFileUploadEnabled = false
}
}
apply plugin: 'com.google.firebase.crashlytics'
right code:正确的代码:
apply plugin: 'com.google.firebase.crashlytics'
android{
debug{
firebaseCrashlytics {
mappingFileUploadEnabled = false
}
}
}
The reason is that the declaration of the plugin is placed after the use of the,II hope this helps.原因是插件的声明放在了使用之后,希望对大家有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.