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 ?

Victor Häggqvist
  • 4,484
  • 3
  • 27
  • 35
Gnurant
  • 446
  • 3
  • 9

3 Answers3

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.

Mike Bonnell
  • 16,181
  • 3
  • 61
  • 77
  • 13
    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.. – behelit Oct 23 '17 at 04:23
  • I was able to upload unsigned apk to crashlytics by adding: apk_path: – ODAXY Mar 01 '18 at 12:52
  • Hi Mike, I know how to generate signed APK, and i have generated signed APK successfully, but still facing same issues – Akshay Jul 02 '18 at 07:16
  • Are you getting a different warning? – Mike Bonnell Jul 09 '18 at 15:58
  • I'm getting the same warning. I have even turned off Instant Run and made sure that I am online – John Ernest Guadalupe Sep 15 '18 at 01:10
  • 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 info – GFPF Apr 29 '19 at 20:42
  • I'd recommend contacting support(at)fabric(dot)io with any suggestions for improving the documentation. – Mike Bonnell Apr 29 '19 at 23:00
3

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

6155031
  • 4,171
  • 6
  • 27
  • 56
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.

Leonardo Alves Machado
  • 2,747
  • 10
  • 38
  • 53
Harshil
  • 161
  • 2
  • 6