I'm trying to build a Unity app that uses an Android library. The library code makes use of the Pair class, the code snippet is the following:
private Pair<Connection, Connection[]> parseConnectionOptions(Connection connDefault) throws ConfigParseError {
Connection conn;
if (connDefault != null)
I generate a java library (aar) and use it from my Unity app. However when I build the app and try to run it I get the following error
11-29 13:17:25.166 19667 19701 E Unity : AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/util/Pair;
11-29 13:17:25.166 19667 19701 E Unity : java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/util/Pair;
I've already investigated if there's some similar issue but didn't found any useful information. I don't understand why this class is missing. Any hints are more than welcome.