Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add task 'bundleReleaseJsAndAssets_SentryUpload_7497576' as a task with that name already exists. #1226

Closed
6 tasks
Giosevid opened this issue Nov 30, 2020 · 7 comments

Comments

@Giosevid
Copy link

OS:

  • Windows
  • [ * ] MacOS
  • Linux

Platform:

  • iOS
  • [ * ] Android

SDK:

  • [ * ] @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 1.0.9

react-native version: 0.61.5

Are you using Expo?

  • Yes
  • [ * ] No

Are you using sentry.io or on-premise?

  • [ * ] sentry.io (SaaS)
  • on-premise

I have following issue:
`Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • Where:
    Script '/../../ws/tc-react-native/example/node_modules/@sentry/react-native/sentry.gradle' line: 72

  • What went wrong:
    Cannot add task 'bundleReleaseJsAndAssets_SentryUpload_7497576' as a task with that name already exists.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:15)
at runOnAllDevices (/../../ws/tc-react-native/example/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at buildAndRun (/../../ws/tc-react-native/example/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:179:41)
at /../../ws/tc-react-native/example/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:133:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (/../../ws/tc-react-native/example/node_modules/@react-native-community/cli/build/index.js:182:9)``

Steps to reproduce:

  • yarn add @sentry/react-native
  • yarn sentry-wizard -i reactNative -p ios android
  • yarn android

Actual result:

same problem

Expected result:

the app should build

@FaggioniHQ
Copy link

Any news on this?. We are updating to RN 0.64, and we are getting this issue.

@ehynds
Copy link

ehynds commented Apr 15, 2021

Also seeing this issue on RN 0.64

FAILURE: Build failed with an exception.

* Where:
Script '/Users/eric/Projects/.../node_modules/@sentry/react-native/sentry.gradle' line: 72

* What went wrong:
Cannot add task 'bundleReleaseJsAndAssets_SentryUpload_24' as a task with that name already exists.

@jyprksh001
Copy link

Also seeing this issue on RN 0.64

FAILURE: Build failed with an exception.

* Where:
Script '/Users/eric/Projects/.../node_modules/@sentry/react-native/sentry.gradle' line: 72

* What went wrong:
Cannot add task 'bundleReleaseJsAndAssets_SentryUpload_24' as a task with that name already exists.

Did you solve it ??

@stefan-chelaru-auka
Copy link

Any updates?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@marandaneto
Copy link
Contributor

marandaneto commented Nov 10, 2021

do you have any special configuration (different than the default template) on android/app/build.gradle?

have you tried to run a clean build? ./gradlew clean app:installDebug

or ./gradlew stop and then ./gradlew app:installDebug

that could happen if you have multiple variants or build types but not increasing the versionCode which is mandatory otherwise you cant publish in the store (2 different apks with the very same versionCode)

@marandaneto
Copy link
Contributor

similar to #1401
it's likely an RN issue and could be solved by upgrading RN itself.

please raise a new issue if the problem persists, ideally answering #1226 (comment)

@getsentry getsentry locked as resolved and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants