# Ionic 4 with zoom plugin 4.6

**URL:** <https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974>\
**Category:** Ionic\
**Created:** [May 25, 2020, 1:28pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974 "2020-05-25T13:28:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![alb](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@alb](https://devforum.zoom.us/u/alb)\
**Post date:** [May 25, 2020, 1:28pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/1 "2020-05-25T13:28:59Z")

</div>

**Description**  
Ionic 4 fails to build for Android.

**Which version?**  
ionic 4  
cordova.plugin.zoom 4.6

**To Reproduce(If applicable)**  
I have had the following issues:

1. I tried to run the following command:  
npm install cordova.plugin.zoom  
npm install @ionic-native/zoom  
ionic cap sync  
and ionic install the apk on device but when I use a zoom function I have the following error: ‘plugin\_not\_installed’ Install the Zoom plugin: ‘ionic cordova plugin add cordova.plugin.zoom’

2. I run the command ‘ionic cordova plugin add cordova.plugin.zoom’ then I add last platform of android (8.1.0) with minSdkVersion=21 and targetSdkVersion=29 but i have the following error: ‘AAPT: error: attribute android:foregroundServiceType not found.’

3. Then I have tried the following solution:  
[After upgrading to v4.4.55968.0904 error: failed processing manifest](https://devforum.zoom.us/t/after-upgrading-to-v4-4-55968-0904-error-failed-processing-manifest/5793)  
setting the build-extras.gradle file in 'plugins/cordova.plugin.zoom/src/android/biuld-extras.gradle but I have the following error: “A problem occurred evaluating script. Project with path ‘:commonlib’ could not be found in project ‘:app’.”

**Screenshots**

 ![3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/953df4ef5596b7ae348f1c9604be8d2a529de9ca.png)

1. Then I’ve made the changes suggested here:  
[Integration with Ionic5 Capacitor and Vuejs - #2 by carson.zoom](https://devforum.zoom.us/t/integration-with-ionic5-capacitor-and-vuejs/9233/2)  
copying the file commonlib.aar and mobilerct.aar also in libs directory but the error has remained.

2. Finally, I added "include ‘:commonlib’ " on the top of build-extras.gradle, but I have this error "A problem occurred evaluating script.

> Could not find method include() for arguments [:commonlib] on project ‘:app’ of type org.gradle.api.Project."

With each change I remove the android platform and add it again.  
Where am I wrong? What can I do to fix the problem? The plugin is very complete and I need to use it.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 27, 2020, 7:59am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/2 "2020-05-27T07:59:19Z")

</div>

Hi @alb,

Thanks for using Zoom SDK and thanks for sharing your attempts. Our Ionic SDK does not support Ionic Capacitor, you will need to use ionic-cli to build the SDK, and the Ionic SDK only supports the Angular project. Please also make sure you have included the required dependencies as mentioned in [https://github.com/zoom/zoom-sdk-ionic#prerequisites;](https://github.com/zoom/zoom-sdk-ionic#prerequisites;) You may cross-reference the configurations in our demo app [https://github.com/zoom/sample-app-ionic](https://github.com/zoom/sample-app-ionic).

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![alb](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@alb](https://devforum.zoom.us/u/alb)\
**Post date:** [May 27, 2020, 12:33pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/3 "2020-05-27T12:33:56Z")

</div>

Hi, thanks for the answer.  
I already use ionic-cli to build the APK and mine is an angular project. I also set everything as in the link, installed the necessary plugins and the correct versions of the sdk. Having always the same problem, I tried to download your demo app and follow the guide you suggested

 ![guida](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/70a90ceaf439b275395d99b63a6d6da30126f279.png)  
but I still have the problems listed above:

_‘Project with path :commonlib could not be found in project :app’._

If I uninstall the plugin everything works properly.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 28, 2020, 8:46am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/4 "2020-05-28T08:46:33Z")

</div>

Hi @alb,

Thanks for the reply. This sounds unexpected. Let me forward this to the engineering team for further investigation and get back to you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![mtgoto](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mtgoto](https://devforum.zoom.us/u/mtgoto)\
**Post date:** [June 2, 2020, 1:53pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/5 "2020-06-02T13:53:14Z")

</div>

Any update on this issue? I’m having the same problem with the newest version. After upgrading to 4.6.21666.0512 the build fails throwing the error ‘attribute android:foregroundServiceType not found. error: failed processing manifest.’

I already tried to change build tools to 29.0.2 and both compileSdkVersion and targetSdkVersion to API 29 but still getting the error.

---

<div class="post-metadata">

**Author:** ![bhamra](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bhamra/32/3113_2.png) [@bhamra](https://devforum.zoom.us/u/bhamra)\
**Post date:** [June 3, 2020, 2:55pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/6 "2020-06-03T14:55:16Z")

</div>

I am also getting the same error after updating the newest version 4.6.2

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

Please resolve this error asap as user are unable to join the meeting with old version

---

<div class="post-metadata">

**Author:** ![isidorogomez.a](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@isidorogomez.a](https://devforum.zoom.us/u/isidorogomez.a)\
**Post date:** [June 3, 2020, 4:38pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/7 "2020-06-03T16:38:19Z")

</div>

I have the same issue, with the lastest version : cordova.plugin.zoom 4.6.21666.0512 “Zoom”

**Error**  
sample-app-ionic-master/platforms/android/app/build/intermediates/merged\_manifests/debug/AndroidManifest.xml:159: AAPT: error: attribute android:foregroundServiceType not found.

---

<div class="post-metadata">

**Author:** ![developer2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developer2/32/5557_2.png) [@developer2](https://devforum.zoom.us/u/developer2)\
**Post date:** [June 3, 2020, 4:46pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/8 "2020-06-03T16:46:25Z")

</div>

Hello here the same problem.

**Description**  
Ionic 4 fails to build for IOS.

**Which version?**  
ionic 4

Update the packages to the following versions and close the app when I try to enter a meeting.

> ```
> "@ionic-native/zoom": "^5.26.0"
> "cordova.plugin.zoom": "^4.6.2166-6.512",
> 
> ```

try to go back to the previous version but it doesn’t work.

**When you start the application the console throws this at me:**

> 2020-06-03 20:42:06.492032+0400 SETTLE[24590:8388888] zoomService initialize
> 
> 2020-06-03 20:42:06.666533+0400 SETTLE[24590:8388888] [logging-persist] os\_unix.c:43353: (0) open(/var/mobile/Containers/Data/Application/EC199900-EE54-4B3D-8F9C-AF7BA346A3D7/Documents/data/zoomus.tmp.db) - Undefined error: 0
> 
> 2020-06-03 20:42:06.674551+0400 SETTLE[24590:8388888] [logging] table zoom\_meet\_participants already exists in “create table zoom\_meet\_participants (itemID integer64, name text, avatar text,snsID text, snsType integer, deviceID text,roleType integer);”
> 
> 2020-06-03 20:42:06.675606+0400 SETTLE[24590:8388888] [logging] table zoom\_kv already exists in “create table zoom\_kv (key text, value text, section text);”

**when i join the call this comes out\_**

```
#import <UIKit/UIKit.h>

**int** main( **int** argc, **char** * argv[])

{

**@autoreleasepool** {

**int** retVal = UIApplicationMain(argc, argv, **nil** , @"AppDelegate");

**return** retVal;

}

}

```

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 5:35am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/9 "2020-06-04T05:35:58Z")

</div>

Hi @developer2,

Please have a try with the latest version [https://github.com/zoom/zoom-sdk-ionic/releases/tag/v4.6.21666.0603](https://github.com/zoom/zoom-sdk-ionic/releases/tag/v4.6.21666.0603) and this issue should be fixed.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 5:50am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/10 "2020-06-04T05:50:52Z")

</div>

Hi guys,

If you are facing issues on Android and getting `AAPT: error: attribute android:foregroundServiceType not found.`, please try the following:

1. Install the following

```auto
ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter

```

1. Add the following in your config.xml

```auto
<preference name="android-minSdkVersion" value="22" />
        <preference name="android-compileSdkVersion" value="29" />
        <preference name="android-build-tool" value="29.0.2" />
        <preference name="android-targetSdkVersion" value="29" />

```

1. [Important] When adding the Android platform support, please add using the following:

```auto
ionic cordova platform add https://github.com/apache/cordova-android.git

```

Since the current released version of cordova-android does not support Android SDK API Level 29, please install the latest version from their Github repo, which supports Android SDK API Level 29. Please see the following links:

- [https://github.com/apache/cordova-android/issues/846](https://github.com/apache/cordova-android/issues/846)
- [https://github.com/apache/cordova-android/issues/830](https://github.com/apache/cordova-android/issues/830)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![XingYee](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xingyee/32/9861_2.png) [@XingYee](https://devforum.zoom.us/u/XingYee)\
**Post date:** [June 4, 2020, 7:07am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/11 "2020-06-04T07:07:49Z")

</div>

Hi,

Thank you! It works! 😊

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 7:40am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/12 "2020-06-04T07:40:33Z")

</div>

Glad to hear that it is working. Happy Zooming!🙂

---

<div class="post-metadata">

**Author:** ![mtgoto](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mtgoto](https://devforum.zoom.us/u/mtgoto)\
**Post date:** [June 4, 2020, 12:29pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/13 "2020-06-04T12:29:46Z")

</div>

Working for Android! Took a while to compile but nevertheless it’s working. Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 5, 2020, 10:04am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/14 "2020-06-05T10:04:11Z")

</div>

Glad to hear that! Let me know if any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![isidorogomez.a](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@isidorogomez.a](https://devforum.zoom.us/u/isidorogomez.a)\
**Post date:** [June 5, 2020, 3:53pm UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/15 "2020-06-05T15:53:45Z")

</div>

Thanks, now working for android.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2020, 6:43am UTC](https://devforum.zoom.us/t/ionic-4-with-zoom-plugin-4-6/18974/16 "2020-06-17T06:43:49Z")

</div>


