-
-
Notifications
You must be signed in to change notification settings - Fork 353
Closed
Description
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://...@sentry.io/...'
});
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
Metadata
Metadata
Assignees
Labels
No labels