question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: missing library with zoom plugin.

See original GitHub issue

Bug Report

I’m not sure if that’s the right project to file the bug report, please forgive if I’m wrong and point me to the correct project.

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 3.6.0
  @capacitor/core: 3.6.0
  @capacitor/android: 3.6.0
  @capacitor/ios: 3.6.0

Installed Dependencies:

  @capacitor/cli: 3.5.1
  @capacitor/core: 3.5.1
  @capacitor/android: 3.5.1
  @capacitor/ios: 3.5.1

[success] iOS looking great! 👌
[success] Android looking great! 👌

Using following plugins:

   "@awesome-cordova-plugins/zoom": "^5.43.0",
   "cordova.plugin.zoom": "^4.6.2166-6.603",

Platform(s)

  • android

Current Behavior

ionic cap run android fails at the gradle build:

[capacitor]         FAILURE: Build failed with an exception.
[capacitor]
[capacitor]         * What went wrong:
[capacitor]         Execution failed for task ':capacitor-cordova-android-plugins:generateDebugRFile'.
[capacitor]         > Could not resolve all files for configuration ':capacitor-cordova-android-plugins:debugCompileClasspath'.
[capacitor]         > Could not find :commonlib:.
[capacitor]         Required by:
[capacitor]         project :capacitor-cordova-android-plugins
[capacitor]         > Could not find :mobilertc:.
[capacitor]         Required by:
[capacitor]         project :capacitor-cordova-android-plugins

Expected Behavior

The app is built and run on an Android device or emulator

Code Reproduction

ionic start
# select Angular, starter template: tabs, 
npm install cordova.plugin.zoom 
npm install @awesome-cordova-plugins/zoom 
ionic cap add android
ionic cap sync android
ionic cap open android # open once in AndroidStudio for additional project configuration
ionic cap run android # needs a configured android device or emulator

The resulting project can be found here: https://github.com/mley/cordova-zoom-plugin-build-issue

Other Technical Details

npm --version output: 8.12.1

node --version output: v14.19.2

pod --version output (iOS issues only):

Additional Context

The same error happens when trying to build the app in AndroidStudio.

In android/capacitor-cordova-android-plugins/build.gradle you can find:

repositories {
    google()
    mavenCentral()
    jcenter()
    flatDir{
        dirs 'src/main/libs', 'libs'
    }
}

when I check the actual directory structure in android/capacitor-cordova-android-plugins/src/main/libs , there is another subdirectory called android, which contain commonlib.aar and mobilertc.aar. When I change the flatDirs dir entry to dirs 'src/main/libs/android', 'libs', the app can be built in AndroidStudio, but still not with ionic. I assume ionic overwrites the change in build.gradle.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jcesarmobilecommented, Jun 21, 2022

Thanks for the sample app. I’ve seen that the plugin has a custom gradle file that adds the

flatDir {
    dirs 'libs/android'
}

but that has no effect on Capacitor apps

as workaround you can edit the plugin.xml from zoom plugin from

<source-file framework="true" src="libs/android/commonlib.aar" target-dir="libs/android" />
<source-file framework="true" src="libs/android/mobilertc.aar" target-dir="libs/android" />

to

<source-file framework="true" src="libs/android/commonlib.aar" target-dir="libs" />
<source-file framework="true" src="libs/android/mobilertc.aar" target-dir="libs" />

so the files are copied to the root libs folder instead of the android subfolder

or use a capacitor:sync:after hook to modify the capacitor-cordova-android-plugins gradle file after sync command, because as you said, sync command undoes the manual changes you made to that file.

using flatDir is deprecated and will probably stop working on gradle 8, so we won’t be fixing this issue, try reporting the issue to zoom so they can use a different approach, but the plugins looks unmaintained, so not sure if they will fix it

0reactions
ionitron-bot[bot]commented, Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zoom error message “XmppDll.dll is missing from your ...
To fix this issue, you must reinstall Zoom. In the Windows search bar, search for "Control Panel." Click the Control Panel. If Control...
Read more >
[BUG] Can't Load Video SDK Framework from Plugin - macOS
The plugin is linked against all 24 of the Zoom Video SDK libraries (asproxy.framework, cmmlib.framework, etc.) · I have set the Runpath Search ......
Read more >
Windows Outlook Plugin troubleshooting log - Zoom Support
Locate the Zoom Outlook Plugin folder. Right click on the folder and select Send To > Compressed (zipped) folder. Rename the created folder...
Read more >
Troubleshooting VDI plugin installation - Zoom Support
How to troubleshoot common issues with Citrix Receiver, VMware Horizon Client, and AVD Plugin. Applications still running error. Issue: You ...
Read more >
Troubleshooting the Zoom for Outlook add-in
Issue: Error message in the Windows Outlook application console log: ... /Users/{your_name_on_the_device}/Library/Containers/com.Microsoft.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found