如何解决在 Android Native App 的模块中使用 WebRTC
我想将 webRTC 添加到我的 Android 原生应用程序 (Kotlin)。 当我用作整体模块时没有问题,但是当我决定创建模块化应用程序并将每个部分拆分为其模块时,我在添加 webRTc 库 (libwebrtc.aar) 时遇到了问题。 添加核心模块 New>> Module>>Android Library Module>> 将 core 设置为 module and...
将 libwebrtc.aar 移动到核心模块中的“libs”文件夹,并将这一行添加到核心模块 build.gradle 文件中
api files('libs/libwebrtc.aar')
为了
flatDir {
dirs 'libs'
}
我收到了不使用这个标签的警告,然后我从项目的 build.gradle 文件中注释(删除)它
image of I get Error when running app and show project structure
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform libwebrtc.aar to match attributes {artifactType=enumerated-runtime-classes,org.gradle.usage=java-runtime}.
> Execution failed for AarToClassTransform: C:\Users\Saeed\.gradle\caches\transforms-2\files-2.1\2de79c22a87212ae21503ef7176b8107\jetified-libwebrtc.aar.
> zip file is empty
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。