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

app:bundleReleaseJsAndAssets_SentryUpload FAILED #756

Closed
4 tasks
mtnt opened this issue Feb 7, 2020 · 1 comment
Closed
4 tasks

app:bundleReleaseJsAndAssets_SentryUpload FAILED #756

mtnt opened this issue Feb 7, 2020 · 1 comment

Comments

@mtnt
Copy link

mtnt commented Feb 7, 2020

OS:

  • Windows
  • [* ] MacOS
  • Linux

Platform:

  • iOS
  • [* ] Android

SDK:

  • [* ] @sentry/react-native
  • react-native-sentry

react-native version: 0.61.5

Init Code:

Sentry.init({
  dsn: 'https://[email protected]/...'
});

I have the following issue:

Build failed when I tried to install release build onto android.
I initially set @sentry/react-native and followed all the specifications. But I have installed react-native-navigation and wizard did not all it should. So, I opened the manual installation section and add some code. Finally, I got changes:
1.
settings.gradle

include ':react-native-sentry'
project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/@sentry/react-native/android')

app/build.gradle

apply from: "../../node_modules/@sentry/react-native/sentry.gradle"
...
dependencies {
    ...
    implementation project(':react-native-sentry')

MailApplication.java

import io.sentry.RNSentryPackage;

...
         return Arrays.<ReactPackage>asList(
             new RNDeviceInfo(),
             new AsyncStoragePackage(),
            new SplashScreenReactPackage(),
+            new RNSentryPackage()
         );

android/sentry.properties

...
cli.executable=node_modules/@sentry/cli/bin/sentry-cli // the path is correct

Steps to reproduce:
react-native run-android --variant=release

Actual result:

> Tasak :app:bundleReleaseJsAndAssets_SentryUpload FAILED
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
67 actionable tasks: 5 executed, 62 up-to-date
error: project not found

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
* Closing connection 0

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
> Process 'command 'node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1
@mtnt
Copy link
Author

mtnt commented Feb 7, 2020

I clear the point... I did rename a project in the web interface but did not at defaults.project...

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

No branches or pull requests

1 participant