# Android resource linking failed in jetified-mobilertc AndroidManifest.xml

**URL:** <https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359>\
**Category:** Android\
**Created:** [May 28, 2020, 8:55am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359 "2020-05-28T08:55:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaibhuvaneshwari.pet](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jaibhuvaneshwari.pet](https://devforum.zoom.us/u/jaibhuvaneshwari.pet)\
**Post date:** [May 28, 2020, 8:55am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/1 "2020-05-28T08:55:30Z")

</div>

**Description**  
Facing compiler error “Android resource linking failed” in jetified-mobilertc AndroidManifest.xml

Android Compile SDK version 28  
Minimum SDK version 21  
Java 1.8  
Migrated app to android X  
Zoom sdk version V4.6.21666.0429

Note: While using zoom sdk older version V4.4.55130.0712. We are able to integrate successfully.

\*_Screenshots_

\*\*Smartp

 ![Screenshot 2020-05-28 at 1.24.49 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dc329a241682dedad38b6e81a253fc52128a213d.png)

Kindly let us know if we are missing anything.

---

<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 29, 2020, 5:58am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/2 "2020-05-29T05:58:16Z")

</div>

Hi @jaibhuvaneshwari.pet,

Thanks for using Zoom SDK. This is probably caused by the Android Studio cache, please have a try with the following:

- File -\> Invalidate Caches/Restart

If the error persists, could you provide more details of the error you are getting?

Thanks!

---

<div class="post-metadata">

**Author:** ![jaibhuvaneshwari.pet](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jaibhuvaneshwari.pet](https://devforum.zoom.us/u/jaibhuvaneshwari.pet)\
**Post date:** [May 29, 2020, 1:31pm UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/3 "2020-05-29T13:31:56Z")

</div>

Hi @carson.zoom,  
Yes the error still persists even after invalidating Caches and restart.  
error message - mobilertc/build/.transforms/18fe521691034556d43b86e68de90ec9/jetified-mobilertc/AndroidManifest.xml:119:9-123:51: **AAPT: error: attribute android:foregroundServiceType not found.**

**Fix** : Adding the below code in the app’s manifest file fixes the issue .As screeenshareservice registered in the mobilertc throws the exception while merging manifest, that service attributes are overridden in the below code hence app runs without issue.  
code:  
**\<service**  
\*\* android:name=“com.zipow.videobox.share.ScreenShareService”\*\*  
\*\* tools:node=“replace” /\>\*\*  
**Reference** :

> <https://stackoverflow.com/questions/56579320/how-can-i-add-foregroundservicetype-to-a-library-manifest-while-maintaining-back>

**Important Note** : It will be good to know whether this is the right way to fix this error or some configuration missing from our end.  
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 3, 2020, 7:35am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/4 "2020-06-03T07:35:03Z")

</div>

Hi [jaibhuvaneshwari.pet](https://devforum.zoom.us/u/jaibhuvaneshwari.pet),

Thanks for the reply. Based on the error info:

> [@jaibhuvaneshwari.pet](#):
>
> AAPT: error: attribute android:foregroundServiceType not found.

It seems like you are not using Android SDK 29+ to build the app. Please ensure your project settings match the pre-requisites in [GitHub - zoom/zoom-sdk-android: Zoom Android SDK](https://github.com/zoom/zoom-sdk-android#prerequisites)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![jaibhuvaneshwari.pet](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jaibhuvaneshwari.pet](https://devforum.zoom.us/u/jaibhuvaneshwari.pet)\
**Post date:** [June 3, 2020, 9:43am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/5 "2020-06-03T09:43:54Z")

</div>

Hi @carson.zoom,  
We are using following settings,

- **compileSdkVersion** : 29+
- **buildToolsVersion** : 29+
- **minSdkVersion** : 21
- **Required dependencies**

```auto
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0-rc01'

```

Android project migrated to Android X.  
Let me know if anything we are missing.  
Thanks,  
Jai.

---

<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, 6:32am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/6 "2020-06-04T06:32:17Z")

</div>

Hi @jaibhuvaneshwari.pet,

Thanks for the reply. Are you using the following:

```auto
compileSdkVersion 29
    buildToolsVersion '29.0.2'
  vectorDrawables.useSupportLibrary = true

```

If yes and you are still facing issues, could you provide the error message?

Thanks!

---

<div class="post-metadata">

**Author:** ![jaibhuvaneshwari.pet](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jaibhuvaneshwari.pet](https://devforum.zoom.us/u/jaibhuvaneshwari.pet)\
**Post date:** [July 2, 2020, 10:14am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/7 "2020-07-02T10:14:31Z")

</div>

Hi @carson.zoom,  
Yes I am using the above mentioned configuration. Still i am facing this issue. Even adding this

**\<service**  
\*\* android:name=“com.zipow.videobox.share.ScreenShareService”\*\*  
\*\* tools:node=“replace” /\>\*\*  
screen share not having callback.  
Kindly reply ASAP.  
Thanks in advance!

---

<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:** [July 8, 2020, 6:43am UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/8 "2020-07-08T06:43:23Z")

</div>

Hi @jaibhuvaneshwari.pet,

Could you clean the cache of the gradle file? If you are using Windows, here is the regular path for the gradle cache files: `C:\Users\UserName\.gradle\caches\transforms-1\files-1.1\commonlib.aar`. Please try to clean the cache and delete the folder and see if it helps.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:36pm UTC](https://devforum.zoom.us/t/android-resource-linking-failed-in-jetified-mobilertc-androidmanifest-xml/19359/9 "2020-08-21T22:36:36Z")

</div>

Closed on August 21, 2020, 10:36pm UTC


