【问题标题】:Problem while integrating Zoom SDK in custom app在自定义应用程序中集成 Zoom SDK 时出现问题
【发布时间】:2020-07-27 11:16:59
【问题描述】:

说明

我正在尝试将 Zoom SDK 集成到我的应用中。我按照文档here 提供的步骤进行操作。我导入了两个 .arr 模块,即在 commonlibs 和移动 rtc 中,然后我添加了所需的库作为依赖项 从项目结构 -> 依赖项 -> 应用程序 -> + -> commonlibmobilertc

这些是我的build.gradle (:app) 中的依赖项

dependencies { 

implementation fileTree(dir: “libs”, include: ["*.jar"]) 
implementation ‘androidx.appcompat:appcompat:1.1.0’ 
implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’ 
implementation project(path: ‘:mobilertc’) 
implementation project(path: ‘:commonlib’) 
testImplementation ‘junit:junit:4.12’ 
androidTestImplementation ‘androidx.test.ext:junit:1.1.1’ 
androidTestImplementation ‘androidx.test.espresso:espresso-core:3.2.0’

}

在文档的后面是这样说的

现在您可以在自己的应用程序中从 SDK 导入类,并 在您的应用中享受美妙的视频会议体验。

我复制了 sdksample 中的所有包并将其粘贴到我的 zoomcustomintegration 中(我的应用程序的 mainActivity 的包名称是 com.priyansh.zoomcustomintegration)但它说无法从包含 import us.zoom 的任何导入中解析符号我们。 sdk.ZoomSDK;

尝试过

  • 从 gradle 文件同步项目
  • 无效并重新启动
  • 从磁盘重新加载所有文件

错误 在运行应用程序时,它说: 错误 1 ​​如图 1 所示 无法解析import us.zoom.sdk.ZoomSDK 中的us,或者有时它说无法解析import us.zoom.sdk.ZoomSDK 中的sdk 错误 2 如图 2 所示 构建错误

C:\Users\psult\Desktop\ZoomCustomInegrationV1\mobilertc\build.transforms\3bd9518bb58a8e93f142f05e10412654\jetified-mobilertc\AndroidManifest.xml

截图

图片 1

图片 2

【问题讨论】:

  • 你是怎么解决这个问题的?我也被困在这里@Priyansh

标签: java android zoom-sdk


【解决方案1】:

您正在从libs 文件夹导入jars,但不是aars。 变化:

implementation fileTree(dir: “libs”, include: ["*.jar"]) 

进入:

implementation fileTree(dir: “libs”, include: ["*.aar"]) 

【讨论】:

  • 我导入了 .aars 文件,但它会自动在依赖项中使用 .jars。当您指出时,我明确检查了它。
  • 你有没有想过@Priyansh?
  • 是的,我在我的应用中成功集成了 ZoomSDK。
  • 解决办法是什么?我也卡住了。
【解决方案2】:

试试这个方法。

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
    implementation files('libs/commonlib.aar')
    implementation files('libs/mobilertc.aar')
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.3.0-alpha02'
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-18
    • 1970-01-01
    • 1970-01-01
    • 2022-11-18
    • 2016-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多