fastlane crashlytics step: halted compilation - can't extract Crashlytics build info from APK
See original GitHub issueI’ve seen this reported in multiple places, however cannot seem to find any info regarding a fix.
The full error when trying to run an fastlane flutter build using com.crashlytics.sdk.android:crashlytics:2.9.9@aar
is
+------+-----------------------------+-------------+
| fastlane summary |
+------+-----------------------------+-------------+
| Step | Action | Time (in s) |
+------+-----------------------------+-------------+
| 1 | update_fastlane | 7 |
| 2 | default_platform | 0 |
| 3 | gradle | 4 |
| 4 | flutter build apk | 75 |
| | --target\=lib/config/produ | |
| | ction.dart --rele | |
| 5 | read_pubspec_version | 0 |
| 6 | read_changelog | 0 |
| 💥 | crashlytics | 0 |
+------+-----------------------------+-------------+
[14:42:58]: fastlane finished with errors
[!] WARN - Crashlytics halted compilation because it can't extract Crashlytics build info from the APK: /Users//xxx/xx/xx/build/app/outputs/apk/release/app-release.apk
Exception in thread "main" com.crashlytics.tools.android.exception.PluginException: Distribution upload failed.
at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:667)
at com.crashlytics.tools.android.DeveloperTools.processArgsInternal(DeveloperTools.java:348)
at com.crashlytics.tools.android.DeveloperTools.main(DeveloperTools.java:273)
Caused by: com.crashlytics.tools.android.exception.DistributionException: Crashlytics halted compilation because it can't extract Crashlytics build info from the APK: /Users/xxx/xx/xxx/build/app/outputs/apk/release/app-release.apk
at com.crashlytics.tools.android.DistributionTasks.uploadDistribution(DistributionTasks.java:64)
at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:665)
... 2 more
have followed the exact installation configurations and examples from this repo, but to no avail. it used to work fine.
this happened after we upgraded flutter project for AndroidX doing the following in dependencies
compile('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
transitive = true;
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Flutter APK release build fails to upload to Fabric Beta
WARN - Crashlytics halted compilation because it can't extract Crashlytics build info from the APK: /home/me/app-release.apk Exception in ...
Read more >error when using to upload build to fabric crashlytics #4222
The issue here is that I'm not exporting a full fledged Android project, I'm building an APK through Unity, and gradle and its...
Read more >App Distribution troubleshooting & FAQ - Firebase - Google
This page provides troubleshooting help and answers to frequently asked questions about distributing and testing apps with App Distribution.
Read more >How to expose the apk uploaded to crashlytics generated by ...
Hi I recently imported an android project on bitrise and created a workflow for it Since the project already has fastlane added.
Read more >Page 2 - diego.org
Fastlane solution for Crashlytics – Missing dSYMs. Published October 24, 2017 by doug. While working on a new Xcode project, I was unable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fought the same problem for a few hours. I have two projects one of which was doing just fine and the other was having this issue. Went through
app/build.gradle
line by line trying to figure out what is going on. Here are some steps for posteritycrashlytics-build.properties
is present in the APK. You’ll need an APK viewer (such as the one bundled with Android Studio).assets
folder (inside the APK)pubspec.yaml
file.flutter_crashlytics: ^ 0.2.1+1
andflutter_crashlytics: ^1.0.0
both have a dependency on kotlin plugin.apply plugin: 'kotlin-android'
in theapp/build.gradle
magically made this file appear!I’d be very curious to hear why that is the case, because the example project doesn’t seem to have this dependency at all. I wonder why the example project is working (or why my project wasn’t working).
adding the
apply plugin: 'kotlin-android'
toapp/build.gradle
did the trick, but only with the following in the androidbuild.gradle
: