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

UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: io.sentry.Sentry #1358

Closed
oddgames-david opened this issue Jun 2, 2023 · 6 comments
Assignees
Labels
Bug Something isn't working

Comments

@oddgames-david
Copy link

oddgames-david commented Jun 2, 2023

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which version of the SDK?

1.4.0

How did you install the package?

Git UPM

Which version of Unity?

2022.3.0f1

Steps to Reproduce

Empty project
Add sentry via UPM
Build and run on device (android 13, samsung s22)

Expected Result

It works

Actual Result

This is reported to sentry as an issue (so at least it reports):

UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: io.sentry.Sentry
  Module "UnityEngine.AndroidJNISafe", in CheckException
  Module "UnityEngine.AndroidJNISafe", in FindClass
  Module "UnityEngine.AndroidJavaClass", in _AndroidJavaClass
  Module "UnityEngine.AndroidJavaClass", in .ctor
  Module "Sentry.Unity.Android.SentryJava", in GetSentryJava
  Module "Sentry.Unity.Android.SentryJava", in GetInstallationId
  Module "Sentry.Unity.Android.SentryNativeAndroid", in Configure
  Module "Sentry.Unity.SentryInitialization", in Init
@oddgames-david
Copy link
Author

oddgames-david commented Jun 3, 2023

Probably caused by #1355?

@bitsandfoxes
Copy link
Contributor

Probably caused by #1355?

Hey @oddgames-david and thanks for reporting this. That sounds likely. The PR updates adding Sentry Android to the "new" template file.

@bitsandfoxes bitsandfoxes added Bug Something isn't working and removed Status: Untriaged labels Jun 5, 2023
@oddgames-david
Copy link
Author

Patch fix coming tonight?

@eefan000
Copy link

eefan000 commented Jul 31, 2023

I also had the same problem.
https://feamber.sentry.io/share/issue/64a77a3a54b34408b2b66cb4c9c10fa5/
unity 2021.3.26

@bitsandfoxes
Copy link
Contributor

I'm on it.

@bitsandfoxes
Copy link
Contributor

Sorry for the wait. This should be fixed in 1.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants