question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android build issue

See original GitHub issue

Describe 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

  1. Run an android build
  2. Run another android build without running ./gradlew clean or rm -rf android/app/build
  3. See error

Environment

  • Bugsnag version: 7.10.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:30 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
hardworkercommented, Oct 12, 2022

@johnkiely1 Any plans to cherry-pick this fix to v7 while it’s recommended by docs?

4reactions
mattdyoungcommented, Dec 17, 2021

Thanks for the info. We’ve scheduled a fix for this early next month.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found