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

Error bundle release android #1390

Closed
lorenzoangelini opened this issue Mar 14, 2021 · 7 comments
Closed

Error bundle release android #1390

lorenzoangelini opened this issue Mar 14, 2021 · 7 comments

Comments

@lorenzoangelini
Copy link

lorenzoangelini commented Mar 14, 2021

Environment

I'm using the last version of react native,"react-native": "0.64.0", and last version of sentry "@sentry/react-native": "^2.3.0"

Steps to Reproduce

I run bundleStagingRelease or assembleStagingRelease

Expected Result

The bundle is created correctly

Actual Result

Task :app:bundleStagingReleaseJsAndAssets_SentryUpload_-1898184413 FAILED
Task :app:bundleStagingReleaseJsAndAssets_SentryUpload_-1898184415 FAILED
error: Found argument '-1' which wasn't expected, or isn't valid in this context
USAGE:
sentry-cli react-native gradle [OPTIONS] --bundle --dist ... --release --sourcemap

@jennmueng
Copy link
Member

Closing this in favor of #1401

@zoontek
Copy link

zoontek commented Apr 13, 2021

@jennmueng I don't think this is the same issue. This one happen because a - is prepend here: SentryUpload_-1898184413 (Found argument '-1')

In my case, it fails with:

Task :app:bundleDevelopmentReleaseJsAndAssets_SentryUpload_-868184591 FAILED
error: Found argument '-8' which wasn't expected, or isn't valid in this context

@zoontek
Copy link

zoontek commented Apr 13, 2021

I got it, this is related to this change in RN 0.64:

output.versionCodeOverride =
-   versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
+   defaultConfig.versionCode * 1000 + versionCodes.get(abi)

As this change is only "for new apps", it should be reverted. More infos here: facebook/react-native#29808

@jennmueng jennmueng reopened this Apr 14, 2021
@jennmueng
Copy link
Member

@zoontek Hmm, as we just wrap the original build task:

def nameCliTask = "${bundleTask.name}_SentryUpload_${versionCode}"

and take the original version code as is, then that means the original version code override is invalid in the first place right? I'm not too familiar with gradle myself.

@marandaneto
Copy link
Contributor

@jennmueng do you know if we should do something about it?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants