在Android本机应用程序的模块内使用WebRTC

在Android本机应用程序的模块内使用WebRTC,android,kotlin,aar,webrtc-android,modular-design,Android,Kotlin,Aar,Webrtc Android,Modular Design,我想将webRTC添加到我的Android本机应用程序(Kotlin)中。 当我用作单片模块时并没有问题,但当我决定创建模块化应用程序并将每个部分拆分为其模块时,我遇到了添加webRTc库(libwebrtc.aar)的问题。 添加新的核心模块>>模块>>Android库模块>>将核心设置为模块并 将libwebrtc.aar移到核心模块内的“libs”文件夹中,并将此行添加到核心模块build.gradle文件中 api文件('libs/libwebrtc.aar') 为了 我收到了不使用此标

我想将webRTC添加到我的Android本机应用程序(Kotlin)中。 当我用作单片模块时并没有问题,但当我决定创建模块化应用程序并将每个部分拆分为其模块时,我遇到了添加webRTc库(libwebrtc.aar)的问题。 添加新的核心模块>>模块>>Android库模块>>将核心设置为模块并

将libwebrtc.aar移到核心模块内的“libs”文件夹中,并将此行添加到核心模块build.gradle文件中

api文件('libs/libwebrtc.aar')

为了

我收到了不使用此标记的警告,然后我从project的build.gradle文件中注释(删除)了它


我得到这个错误是因为当我在Android Studio中复制应用程序的libs目录时,所有文件的大小都是0 KB。
flatDir {
            dirs 'libs'
        }
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