Please note that version 4 of the Android SDK is deprecated. As of February 2022, all dependencies to Android SDKv4 will stop working. Please use version 5 for Android and ensure you are using mavenCentral() as your package manager. There is more information here.