App bundles for new apps in the Play Store

Since August 2021 new apps to the Play Store have had to supply app bundles, with apks no longer accepted. https://developer.android.com/guide/app-bundle

I attempted to build a bundle but it asks to update the Android Gradle Plugin then fails the update. It mentions doing a text search to update the build files and my knowledge and confidence wanes at this point.

I’m running Android Studio 4.1.2 and of Android 0.11.2 on macOS Monterey.
Has anyone had success building app bundles and submitting to the Play Store?

Thanks.