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

The project name '@sentry/react-native' must not contain any of the following characters: [/, \, :, <, >, ", ?, *, |] #675

Closed
3 of 7 tasks
juhaelee opened this issue Oct 1, 2019 · 3 comments

Comments

@juhaelee
Copy link

juhaelee commented Oct 1, 2019

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (^1.0.6)
  • react-native-sentry

react-native version: 0.61.1

Init Code:

Sentry.init({
  dsn: 'https://...@sentry.io/...'
});

I have following issue:

Can't build or clean my android app after manually implementing on android. The error I get is:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':@sentry/react-native'.
> The project name '@sentry/react-native' must not contain any of the following characters: [/, \, :, <, >, ", ?, *, |]. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/5.5/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

I suspect this comes from the settings.gradle or build.gradle steps

Steps to reproduce:

Actual result:

  • See error in description

Expected result:

  • For the app to build
@HazAT
Copy link
Member

HazAT commented Oct 2, 2019

I think this is an error in our docs, can you try just to add this
apply from: "../../node_modules/@sentry/react-native/sentry.gradle" ?

@vdolbilov
Copy link

I had this same issue on 1.0.6, fixed it by doing

implementation project(':@sentry-react-native') in build.gradle > dependencies and

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

in settings.gradle

@lobsterkatie
Copy link
Member

Added to the docs in getsentry/sentry-docs#1266.

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

4 participants