Uploading ProGuard Mapping Files to Firebase

前端 未结 3 1392
無奈伤痛
無奈伤痛 2021-01-11 14:06

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. T

相关标签:
3条回答
  • 2021-01-11 14:17

    In my case I was using Jenkins to upload the proguard mappings for me. I had to change the file permissions for the json private key file from 400 to 444.

    0 讨论(0)
  • 2021-01-11 14:26

    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.

    0 讨论(0)
  • 2021-01-11 14:29

    Set relative path to json in gradle.properties (in project root)

    FirebaseServiceAccountFilePath = /firebase-crashreporting.json
    

    and update this property in your build.gradle

    apply plugin: 'com.android.application'
    apply plugin: 'com.google.firebase.firebase-crash'
    
    android {
        ...
    }
    
    setProperty("FirebaseServiceAccountFilePath", rootProject.rootDir.absolutePath + FirebaseServiceAccountFilePath)
    
    dependencies {
        ...
    }
    
    0 讨论(0)
提交回复
热议问题