我正在尝试最近发布的功能,该功能允许使用 gradle 任务将 ProGuard 映射文件上传到 Firebase ( https://firebase.google.com/docs/crash/android )。以下是我正在运行的任务。
./gradlew -PFirebaseServiceAccountFilePath=xxxxx.json :app:firebaseUploadReleaseProguardMapping
但是,它似乎没有识别服务帐户文件。有没有人有运气让这个工作?我也尝试过FirebaseServiceAccountFilePath
在 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.