Unable to build project using Compile Version SDK of 28 (attribute foregroundServiceType not found)

I am getting the same error while building an apk file.

Execution failed for task ‘:app:processDebugResources’.

Android resource linking failed
D:\ionic\appPluginPrototype\sample-app-ionic-master\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:159: AAPT: error: attribute android:foregroundServiceType not found.

And the project have
“android-minSdkVersion” value=“22”, “android-compileSdkVersion” value=“29”, “android-build-tool” value=“29.0.2”, “android-targetSdkVersion” value=“29”
these configurations.

Actually, this is the sample project I found for zoom integration with ionic through the zoom website.