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

Description
Our company is doing some investigation/planning/analysis of what it would take to include the Zoom SDK in our mobile application.

Which version?
Zoom SDK Version: 4.6.15086.0209

To Reproduce(If applicable)
I added the Zoom required libraries (i.e. mobilertc and commlib) to our Android mobile application and tried to build the application using a compile version of SDK 28. The error that I get when trying to build with the Zoom SDK included is:

error: attribute android:foregroundServiceType not found.
error: failed processing manifest.

Screenshots

Smartphone (please complete the following information):
Android

Additional context
Right now, we have to use a compile version of SDK 28 because another library we use in our mobile application requires it. So updating to compile version of SDK 29 at this time is not an option (I had found this post which mentioned that, After upgrading to v4.4.55968.0904 error: failed processing manifest).

Are there some steps we can take to enable our app to build with the Zoom SDK while using a compile version of SDK 28?

Hi lien.matthew,

Thanks for using Zoom SDK. You may need to change the compileSdkVersion and buildToolsVersion in your build.gradle to be 29+, as mentioned in: https://github.com/zoom/zoom-sdk-android#latest-sdk-notifications

Thanks!

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.

Hi @baijnathpandey15,

Thanks for the reply. You may find the answer to your question here:https://github.com/zoom/zoom-sdk-ionic#frequently-asked-questions-faq; Please follow the instruction in https://github.com/zoom/sample-app-ionic#prerequisites to install the required components.

Thanks!