"Android resource linking failed" issue on latest Android Meeting SDK v5.7.1

Description

Previously I used the last SDK version v5.5.1.1319 in my app, and everything worked fine. Now I update the SDK to be the latest v5.7.1.1267 version. When I compile the app, Android Studio gives the Android resource linking failed error:

The following is the error log:


Android resource linking failed

ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:15: AAPT: error: attribute fastforward_increment (aka com.myapp:fastforward_increment) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:15: AAPT: error: attribute controller_layout_id (aka com.myapp:controller_layout_id) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:15: AAPT: error: attribute rewind_increment (aka com.myapp:rewind_increment) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:33: AAPT: error: resource style/ExoMediaButton.Rewind (aka com.myapp:style/ExoMediaButton.Rewind) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:33: AAPT: error: resource id/exo_rew (aka com.myapp:id/exo_rew) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:36: AAPT: error: resource style/ExoMediaButton.Play (aka com.myapp:style/ExoMediaButton.Play) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:36: AAPT: error: resource id/exo_play (aka com.myapp:id/exo_play) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:39: AAPT: error: resource style/ExoMediaButton.Pause (aka com.myapp:style/ExoMediaButton.Pause) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:39: AAPT: error: resource id/exo_pause (aka com.myapp:id/exo_pause) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:42: AAPT: error: resource style/ExoMediaButton.FastForward (aka com.myapp:style/ExoMediaButton.FastForward) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:42: AAPT: error: resource id/exo_ffwd (aka com.myapp:id/exo_ffwd) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:65: AAPT: error: resource id/exo_position (aka com.myapp:id/exo_position) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:70: AAPT: error: resource id/exo_progress_placeholder (aka com.myapp:id/exo_progress_placeholder) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/media_player_playback_control.xml:80: AAPT: error: resource id/exo_duration (aka com.myapp:id/exo_duration) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/zm_content_file_video_viewer.xml:15: AAPT: error: attribute fastforward_increment (aka com.myapp:fastforward_increment) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/zm_content_file_video_viewer.xml:15: AAPT: error: attribute controller_layout_id (aka com.myapp:controller_layout_id) not found.
    
ERROR:android/zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/zm_content_file_video_viewer.xml:15: AAPT: error: attribute rewind_increment (aka com.myapp:rewind_increment) not found.
    


Which Mobile Meeting SDK version?
The latest Android Zoom Meeting SDK: v5.7.1.1267

Please help! I wanted to upgrade my app to the latest Zoom SDK ASAP because of the Google Play policy issue fixed in v5.7.1.1267. Thank you!

Hi @gerger, thanks for the post.

This is likely due to the newly added dependencies in the latest version of the SDK. We realized recently that they were not included in the releases notes and apologize for the lack of communication in that regard. You should be able to resolve this by ensuring that all of the dependencies used by the sample app’s mobilertc/build.gradle file are included in your app. For your convenience, I’ve included the dependencies in that file below. :slightly_smiling_face:

dependencies.add("default","androidx.security:security-crypto:1.1.0-alpha02")
dependencies.add("default","com.google.crypto.tink:tink-android:1.5.0")
dependencies.add("default","com.google.android.exoplayer:exoplayer-core:2.12.3")
dependencies.add("default","com.google.android.exoplayer:exoplayer-ui:2.12.3")
dependencies.add("default","androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

dependencies.add("default","androidx.appcompat:appcompat:1.0.0")
dependencies.add("default","androidx.constraintlayout:constraintlayout:1.1.3")
dependencies.add("default","com.google.android.material:material:1.2.0-alpha03")
dependencies.add("default","com.google.android:flexbox:2.0.1")
dependencies.add("default","androidx.multidex:multidex:2.0.0")
dependencies.add("default","com.google.code.gson:gson:2.8.1")
dependencies.add("default","com.github.bumptech.glide:annotations:4.11.0")
dependencies.add("default","com.github.bumptech.glide:glide:4.11.0")

Thanks!

1 Like

Hi Jon,

Thank you for your help! By adding the dependencies above, many errors are now gone. Though there are still 4 Android resouce linking errors:


Android resource linking failed
ERROR:.../zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:15: AAPT: error: attribute fastforward_increment (aka com.myapp.event:fastforward_increment) not found.
    
ERROR:.../zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:15: AAPT: error: attribute rewind_increment (aka com.myapp.event:rewind_increment) not found.
    
ERROR:.../zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/zm_content_file_video_viewer.xml:15: AAPT: error: attribute fastforward_increment (aka com.myapp.event:fastforward_increment) not found.
    
ERROR:.../zoom_mobilertc/build/.transforms/40131813ebb38bb6ab24880511c3ceb8/transformed/jetified-mobilertc/res/layout/zm_content_file_video_viewer.xml:15: AAPT: error: attribute rewind_increment (aka com.myapp.event:rewind_increment) not found.

Do I need to add some other dependencies? I couldn’t find the dependencies defined in the Sample app, I only added the dependencies you posted above.

Thank you very much!

Best,
gerger

Hi @gerger,

Glad to hear some of the errors have been resolved. Can you please provide a snippet showing the dependencies in your project so that we can ensure everything is properly set up? Also, can you try File -> Invalidate caches/restart -> Invalidate and Restart and check if that resolves anything?

Thanks!

Hi Jon,

Thanks for the help! I found the issue, I previously used the latest version of exoplayer dependency, though I should only use the old version (2.12.3) as declared in the Zoom sample app

Best,
gerger

That’s great to hear you found the issue!

There is always the risk of breaking changes or bugs in dependencies, so it is certainly a good idea to keep them on the same version as the sample app. :slightly_smiling_face:

Thanks!