【发布时间】:2021-04-19 18:31:58
【问题描述】:
我想将 twilio 库集成到我的 Android 应用程序中。正如他们的website 中提到的,我正在使用
implementation group: "com.twilio.sdk", name: "twilio", version: "8.10.0"
在build.gradle 的dependencies 块内。这会导致错误
发现多个文件具有独立于操作系统的路径“META-INF/DEPENDENCIES”。
根据这个topic我尝试添加
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude("META-INF/*.kotlin_module")
}
}`
然后我收到一个错误,该进程无法访问 \TestProject\app\build\intermediates\merged_java_res\debug\out.jar,因为它已被另一个进程使用。
【问题讨论】:
标签: java android twilio twilio-api