将ProGuard映射文件上传到Firebase [英] Uploading ProGuard Mapping Files to Firebase

查看:1352
本文介绍了将ProGuard映射文件上传到Firebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了最近发布的功能,可以将ProGuard映射文件上传到Firebase( https:/ /firebase.google.com/docs/crash/android )使用gradle任务。以下是我正在运行的任务。

  ./ gradlew -PFirebaseServiceAccountFilePath = xxxxx.json:app:firebaseUploadReleaseProguardMapping 

但是,它似乎没有识别服务帐户文件。有没有人有任何运气得到这个工作?我也尝试在gradle.properties中定义 FirebaseServiceAccountFilePath



$ p $ *出了什么问题:
任务':app:firebaseUploadReleaseProguardMapping'的执行失败。
>服务帐户文件路径尚未定义!服务帐户用于授权您的映射文件上传。请通过
https://firebase.google.com/docs/crash/android了解详情。


解决方案

错误信息有误导性。您将看到如果您找不到服务帐户的文件路径。尝试传递服务帐户文件的完整,明确的路径(尽量不要依赖于相对路径)。

我将确保插件的下一个版本对于未找到该文件的情况,更有意义的错误消息。对不起这个麻烦。


Am trying out the recently released feature that allows uploading of ProGuard mapping file to Firebase (https://firebase.google.com/docs/crash/android) using gradle task. The following is the task I'm running.

./gradlew -PFirebaseServiceAccountFilePath=xxxxx.json :app:firebaseUploadReleaseProguardMapping

However, it doesn't seem to be recognizing service account file. Has anyone had any luck getting this working? I've also tried defining FirebaseServiceAccountFilePath in gradle.properties.

* What went wrong:
Execution failed for task ':app:firebaseUploadReleaseProguardMapping'.
> Service account file path has not been defined! Service accounts are used to authorize your mapping file uploads.  Learn more at
  https://firebase.google.com/docs/crash/android.

解决方案

The error message is misleading. You will see that if the file path that you give for the service account wasn't found. Try passing the full, unambiguous path of the service account file (try not to depend on relative paths).

I'll make sure that the next version of the plugin has a more meaningful error message for the case where the file isn't found. Sorry about the trouble.

这篇关于将ProGuard映射文件上传到Firebase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆