问题
I'm trying to automate my app build distribution via Jenkyns and Crashlytics. I configured all as indicated on the documentation but crashlyticsUploadDistributionRelease failed with this error: "Distribution upload failed" and "WARN - Crashlytics halted compilation because it can't distribute the unsigned APK:".
how can I fix it ?
回答1:
Mike from Fabric and Crashlytics here.
Beta for Android only supports distributing a signed APK, unsigned APKs can't be distributed.
For information on how to sign an Android app, head to Android's documentation here.
回答2:
Crashlytics not support "Android App Bundle". You can only distrubute "APK" in crashlytics beta.
回答3:
I was facing this same issue when I was integrating Fastlane with Crashlytics. I wanted to distribute build to testers.
In Fastlane, you can choose whether you want to publish Debug APK or Release APK. Fastlane trying to publish release APK I just changed it to Debug APK in a Fastfile and it worked.
I am sure it might have some settings in Jenkins also that could publish Debug APK. hope this helps.
来源:https://stackoverflow.com/questions/37972121/unable-to-upload-apk-to-crashlytics