Skip to content

[Android] Getting package io.sentry does not exist error when building for debug #167

@deathemperor

Description

@deathemperor

I followed this instructions https://docs.sentry.io/clients/react-native/

The errors:

:app:compileDebugJavaWithJavac
D:\Atom\react-native-ui-kitten\examples\ExplorerApp\android\app\src\main\java\com\explorerapp\MainApplication.java:7: error: package io.sentry does not exist
import io.sentry.RNSentryPackage;
^
D:\Atom\react-native-ui-kitten\examples\ExplorerApp\android\app\src\main\java\com\explorerapp\MainApplication.java:31: error: cannot find symbol
new RNSentryPackage(MainApplication.this),
^
symbol: class RNSentryPackage
2 errors
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    Compilation failed; see the compiler error output for details.

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

react-native link was successful. apply from: "../../node_modules/react-native-sentry/sentry.gradle" can be found in app\build.gradle.

ExplorerApp\node_modules\react-native-sentry\ is there

(I'm trying to test install sentry into the example app of react-native-ui-kitten)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions