Crashlytics not finding API Key in crashlytics.properties at runtime

后端 未结 2 770
迷失自我
迷失自我 2020-12-16 14:57

I\'m currently implementing the API Key switching script suggested here, except with build types instead of flavors. My build.gradle looks like this:

...
bui         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 15:29

    While this is not the answer to the original question (since Instant Run didn't exist in 2014), you may find that Instant Run can cause problems. My process was:

    • Install Fabric plugin
    • Generate Crashlytics code (including API key in the manifest)
    • Switch to fabric.properties file
    • Spend an hour trying to figure out why it wasn't working
    • Disable Instant Run -> Rebuild -> Install -> Success

    I'm on Android Studio 2.0.0-beta6. This will likely be resolved in future, but this was the only resource I could find online with the same problem so hopefully I can save someone else that hour.

提交回复
热议问题