首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用缩放SDK构建自定义应用程序时遇到的问题

使用缩放SDK构建自定义应用程序时遇到的问题
EN

Stack Overflow用户
提问于 2022-01-17 07:22:23
回答 1查看 927关注 0票数 0

我正在尝试将Zoom集成到我的应用程序中。我遵循这里的文档所提供的步骤。我导入了两个.arr模块,即在commonlib和mobilertc中,然后从项目结构->依赖项->应用程序-> + -> commonlib和mobilertc中添加了所需的库作为依赖项。

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

代码语言:javascript
复制
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 file

  • invalidate的
  • 同步项目和重新启动
  • 重新加载,全部来自磁盘
  • 清洁项目重建项目

仍然会犯这个错误

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2022-01-18 11:08:48

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

代码语言:javascript
复制
Project
|
|-- commonlib 
|
|-- mobilertc
|
|-- App

然后,您必须更改App文件中的依赖项定义(添加"path:"):

代码语言:javascript
复制
implementation project(path: ':mobilertc')
implementation project(path: ':commonlib')

并指定正确的配置。

代码语言:javascript
复制
implementation project(path: ':mobilertc', configuration: 'default')
implementation project(path: ':commonlib', configuration: 'default')
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70737771

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档