A mature application recently recompiled with Android Target SDK 30 now crashes on open with the following error message. It appears to relate to the licensing Library (v1.21)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/utils/URLEncodedUtils;
at com.android.vending.licensing.ServerManagedPolicy.decodeExtras(ServerManagedPolicy.java:285)
at com.android.vending.licensing.ServerManagedPolicy.processServerResponse(ServerManagedPolicy.java:117)
at com.android.vending.licensing.LicenseValidator.handleResponse(LicenseValidator.java:208)
at com.android.vending.licensing.LicenseValidator.verify(LicenseValidator.java:168)
at com.android.vending.licensing.LicenseChecker$ResultListener$2.run(LicenseChecker.java:224)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.utils.URLEncodedUtils
... 10 more