Unity Ads 4.12.2 R8 minify errors

Hello,

We’re using AppLovin MAX’s Unity Ads Android native adapter and since 4.12.2.0, which uses Unity Ads 4.12.2, these errors started appearing when performing the app->Tasks->other->minifyReleaseWithR8 gradle task:

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

Missing class java.beans.ConstructorProperties (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 2 other contexts)
Missing class java.beans.Transient (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 1 other context)

Is it safe to make builds with this error by ignoring the warning in our proguard?

-dontwarn java.beans.ConstructorProperties
-dontwarn java.beans.Transient

or could this cause a runtime exception?

Thank you,
Simon

1 Like

I didn’t work with your SDK, but I worked with Unity LevelPLay, that provides additional steps in the manual when using Proguard.

Is there something like this in the manual of your SDK?

My SDK documentation mentions this which is not very helpful:

I tried adding the Unity LevelPlay proguard rules you’ve linked and it’s still the same result.

I believe what happened is Unity Ads 4.12.2 added dependencies to the FasterXML jackson Project which depends on annotations which aren’t support on Android OS. As these are only annotations, I’m assuming it’s pretty safe to upgrade, but I want Unity devs to validate this assumption is correct.

In the mean time I’ll stick to an older version.

For reference, there’s more info in other apps in the same situation after upgrading their gradle version: