【问题标题】:Problem while building a custom app with zoom SDK使用缩放 SDK 构建自定义应用程序时出现问题
【发布时间】:2022-01-17 07:22:23
【问题描述】:

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

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

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.amitshekhar.android:android-networking:1.0.2'
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    implementation 'com.karumi:dexter:6.1.2'
    implementation 'androidx.recyclerview:recyclerview:1.2.1'
    implementation 'com.google.code.gson:gson:2.8.6'
    implementation 'com.google.android.gms:play-services-vision:20.1.3'
    implementation 'com.google.firebase:firebase-messaging:23.0.0'
    implementation platform('com.google.firebase:firebase-bom:25.12.0')
    implementation 'com.google.firebase:firebase-analytics:20.0.2'

    implementation project(':commonlib')
    implementation project(':mobilertc')
    implementation 'com.google.firebase:firebase-crashlytics:18.2.6'
    implementation 'io.github.kexanie.library:MathView:0.0.6'
    implementation 'com.google.android.exoplayer:exoplayer-core:2.16.1'
    implementation 'com.google.android.exoplayer:exoplayer-ui:2.16.1'
    implementation 'com.google.android.material:material:1.5.0'

}

尝试过

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

仍然出现此错误

Could not determine the dependencies of task ':app:mergeDebugAssets'.

> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.

   > Could not resolve project :commonlib.
     Required by:

         project :app

      > No matching configuration of project :commonlib was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:
          - None of the consumable configurations have attributes.
   > Could not resolve project :mobilertc.

     Required by:

         project :app

      > No matching configuration of project :mobilertc was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 
'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:

          - None of the consumable configurations have attributes.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

【问题讨论】:

  • 看起来您没有正确导入库。您需要再次浏览文档并查看您搞砸的地方。
  • commonlib 和 mobilertc 模块中 build.gradle 文件的内容是什么?
  • 你的 settings.gradle 文件的内容是什么?

标签: android android-studio zoom-sdk


【解决方案1】:

首先,您必须验证 java 模块是否已正确添加到您的项目中。

Project
|
|-- commonlib 
|
|-- mobilertc
|
|-- App

然后你必须在App gradle文件中更改依赖定义(添加“路径:”):

implementation project(path: ':mobilertc')
implementation project(path: ':commonlib')

并指定正确的配置

implementation project(path: ':mobilertc', configuration: 'default')
implementation project(path: ':commonlib', configuration: 'default')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-25
    • 2021-06-03
    • 2022-10-05
    • 2020-06-09
    • 2017-03-15
    • 1970-01-01
    相关资源
    最近更新 更多