Firebase crashlytics 无法正常工作 android
Firebase crashlytics not working in flutter android
我是 firebase crashlytics 的新手,我添加了来自 flutter fire 的 crashlytics,它在新项目中运行良好,但我的客户端应用程序出现错误。
我不知道去哪里找,因为根本没有错误。
此外,在添加 firebase crashlytics 之后,我也无法生成构建版本 apk。但是在生成发布 apk 时出现此错误。
如果您有什么想法,请告诉我。
我唯一怀疑的是我更改了包名称,但我也更新了 firebase 和 android 包。所以我现在很困惑。
* What went wrong:
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
> File 'C:\flutter\alink\build\app\generated\res\google-services\release\values\values.xml' specified for property 'googleServicesFile' does not exist.
您可以尝试更改对 android/build.gradle 的依赖吗?
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
}
https://github.com/FirebaseExtended/flutterfire/issues/6705#issuecomment-899098165 这个评论说对我有用。而且我也试过了。工作了
我是 firebase crashlytics 的新手,我添加了来自 flutter fire 的 crashlytics,它在新项目中运行良好,但我的客户端应用程序出现错误。
我不知道去哪里找,因为根本没有错误。
此外,在添加 firebase crashlytics 之后,我也无法生成构建版本 apk。但是在生成发布 apk 时出现此错误。
如果您有什么想法,请告诉我。
我唯一怀疑的是我更改了包名称,但我也更新了 firebase 和 android 包。所以我现在很困惑。
* What went wrong:
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
> File 'C:\flutter\alink\build\app\generated\res\google-services\release\values\values.xml' specified for property 'googleServicesFile' does not exist.
您可以尝试更改对 android/build.gradle 的依赖吗?
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
}
https://github.com/FirebaseExtended/flutterfire/issues/6705#issuecomment-899098165 这个评论说对我有用。而且我也试过了。工作了