java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion Update: This is no longer a bug or a workaround, it is required if your app targets API Level 28 (Android 9.0) or above and uses the Google Maps SDK for Android 16.0.0 or below (or if your app uses the Apache HTTP Legacy library). It is now included in the official docs. The public issue has been closed as intended behavior. This is a bug on the Google Play Services side until it's fixed, you should be able to workaround by adding this to your AndroidManifest.xml inside the tag:
The Network Security Configuration feature lets apps customize their network security settings in a safe, declarative configuration file without modifying app code. These settings can be configured for specific domains and for a specific app. The key capabilities of this feature are as follows: Custom trust anchors: Customize which Certificate Authorities (CA) are trusted for an app's secure connections. For example, trusting particular self-signed certificates or restricting the set of public CAs that the app trusts. Debug-only overrides: Safely debug secure connections in an app without added risk to the installed base....