terl / lazysodium-android

An Android implementation of the Libsodium cryptography library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
108 stars 25 forks source link

Weird warning when building a release version: "Missing classes detected while running R8." #52

Open AndroidDeveloperLB opened 3 years ago

AndroidDeveloperLB commented 3 years ago

When creating a release version, I've noticed this warning :

Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in ...\app\build\outputs\mapping\release\missing_rules.txt.

When looking inside, it showed various ones:

Missing class com.google.errorprone.annotations.Immutable (referenced from: com.google.crypto.tink.KeyTemplate and 4 other contexts) Missing class java.awt.Component (referenced from: long com.sun.jna.Native$AWT.getComponentID(java.lang.Object) and 3 other contexts) Missing class java.awt.GraphicsEnvironment (referenced from: long com.sun.jna.Native$AWT.getComponentID(java.lang.Object)) Missing class java.awt.HeadlessException (referenced from: long com.sun.jna.Native$AWT.getComponentID(java.lang.Object)) Missing class java.awt.Window (referenced from: long com.sun.jna.Native$AWT.getWindowID(java.awt.Window) and 2 other contexts)

I don't know about the rest, but I see here "jna" , which the current repository uses. Should I be worried?

Ni3verma commented 3 years ago

hey, I am getting same warning in one of my project while building release apk. were you able to solve it?

gurpreet- commented 2 years ago

I don't think this is a cause for concern as they are warnings. It does seem like a problem with JNA. It might be worth raising an issue with them @AndroidDeveloperLB

AndroidDeveloperLB commented 2 years ago

I don't think I see this anymore