Unable to upload apk to Crashlytics
Asked Answered
K

3

10

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 ?

Kimes answered 22/6, 2016 at 15:16 Comment(0)
D
17

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.

Dunigan answered 22/6, 2016 at 16:51 Comment(7)
you also have to check both V1 & V2 signature versions if signing from Android Studio otherwise it will complain that it's unsigned for some reason..Sirenasirenic
I was able to upload unsigned apk to crashlytics by adding: apk_path:Beamer
Hi Mike, I know how to generate signed APK, and i have generated signed APK successfully, but still facing same issuesHastings
Are you getting a different warning?Dunigan
I'm getting the same warning. I have even turned off Instant Run and made sure that I am onlineNigger
Where is this info "Beta for Android only supports distributing a signed APK, unsigned APKs can't be distributed." in the official Crashlytics documentation? Very very poor documentation :[ I had to google it for 1h to find this infoLandmass
I'd recommend contacting support(at)fabric(dot)io with any suggestions for improving the documentation.Dunigan
M
3

Crashlytics not support "Android App Bundle". You can only distrubute "APK" in crashlytics beta.

Mojgan answered 19/2, 2019 at 8:20 Comment(0)
A
0

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.

Aborning answered 27/12, 2017 at 12:3 Comment(2)
How can I choose Debug APK to publish?Leif
@AntonBalashov In a fastfile there is an option like build_android_app(task: "assembleRelease") replace it to build_android_app(task: "assembleDevelop")Aborning

© 2022 - 2024 — McMap. All rights reserved.