Android build issue
See original GitHub issueDescribe the bug
When doing Android builds I’m getting:
> Task :app:bundleStagingReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleStagingReleaseJsAndAssets'.
> kotlin.io.FileAlreadyExistsException: /Users/henrymoulton/Code/app/android/app/build/generated/assets/react/staging/release/index.android.bundle -> /Users/henrymoulton/Code/app/android/app/build/intermediates/bugsnag/rescued/Staging-release.android.bundle: The destination file already exists.
Running rm -rf android/app/build
does the trick but I’m losing some caching ability I suspect.
It specifically mentions /intermediates/bugsnag/rescued/Staging-release.android.bundle:
so that’s why I’ve reported here.
Steps to reproduce
- Run an android build
- Run another android build without running
./gradlew clean
orrm -rf android/app/build
- See error
Environment
- Bugsnag version: 7.10.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:30 (13 by maintainers)
Top Results From Across the Web
Known issues with Android Studio and Android Gradle Plugin
This page tracks known issues with Android Studio Dolphin | 2021.3.1 and Android Gradle plugin 7.3.1. If you experience an issue not already...
Read more >[FIXED] Android build failures `No matching variant of ... - GitHub
Description. Hey all, I'd like to share an update on a series of build failures React Native & Expo users have been experiencing...
Read more >Android Studio project build issue - Stack Overflow
I'm having some strange issue with Android Studio recently. I'm trying to build a project after few modification in code.
Read more >Top Android Build Issues and how to fix them | Gradle Enterprise
In this webcast, we discuss top Android build issues and lessons learned with Jason Schroeder of the Salesforce Android team along Rooz ...
Read more >Troubleshooting Android Issues | Capacitor Documentation
If you have installed a new Plugin from npm and are unable to use or see the plugins in your Android build, try...
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
@johnkiely1 Any plans to cherry-pick this fix to
v7
while it’s recommended by docs?Thanks for the info. We’ve scheduled a fix for this early next month.