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

java.lang.ClassNotFoundException: com.adjust.sdk.Adjust #296

Closed
YevheniiMl opened this issue May 27, 2024 · 1 comment
Closed

java.lang.ClassNotFoundException: com.adjust.sdk.Adjust #296

YevheniiMl opened this issue May 27, 2024 · 1 comment

Comments

@YevheniiMl
Copy link

sdk 4.38.1
unity 2022.3.30f1

With development builds all is fine, sdk fully functional.
But with release builds gets exception:
The type initializer for 'com.adjust.sdk.AdjustAndroid' threw an exception. that contains inner exception:
java.lang.ClassNotFoundException: com.adjust.sdk.Adjust

@YevheniiMl
Copy link
Author

Found the problem..
May be will helpful for someone in future.
After uploading build to Google Play Store I got warning There is no deobfuscation file associated with this App Bundle. If you use obfuscated code (R8/proguard), uploading a deobfuscation file will make crashes and ANRs easier to analyze and debug. Using R8/proguard can help reduce app size.
On forums I found that this may be fixed by enable Project Settings => Player => Android => Publishing Settings => Minify and I did it only for release build)
By the way Minify has help hint - Enable to minify your java code. NOTE: Minification can sometimes remove needed code and produce non-working binaries

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