react-native - Android上的okhttp3问题
问题描述
我们将 Expo-ejected 应用程序升级到 ExpoKit 31,升级指南说要添加
implementation('host.exp.exponent:expoview:31.0.0@aar') {
transitive = true
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
exclude group: 'com.squareup.okhttp3', module: 'okhttp-urlconnection'
}
在构建应用程序时,我们收到以下错误:
任务:app:transformDexArchiveWithExternalLibsDexMergerForDevMinSdkDevKernelDebug FAILED D8:程序类型已经存在:okhttp3.internal.ws.RealWebSocket
你知道我们如何解决这个问题吗?
解决方案
他们添加了一些信息。具体要删除:
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1'
implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1'
检查这个:https ://docs.expo.io/versions/latest/expokit/expokit#upgrading-expokit
推荐阅读
- r - 在两个 DataFrame 中获得最快的顺序和响应时间差
- c++ - 致命错误:GL/glx.h:没有这样的文件或目录 libgl1-mesa-dev 已经安装
- math - 计算机科学数学中的递归关系 T(n) = 6T(n/6) + 2n + 3 对于 6 的 na 次方 T(1) = 1?
- java - getAttribute(value) 方法返回 null,即使该值存在于 HTML 中;硒,JAVA
- java - 从谷歌翻译获取带有翻译的字符串
- .net - VB.NET 为什么我的控件在 VS19 中看起来更旧?
- monitoring - IoTAgent 中的 FIWARE 元数据
- sql-server - 使用 Execute AS 以另一个不同用户的身份终止查询执行
- amazon-web-services - AWS SES:无法从任何一个新区域发送电子邮件
- pandas - 用另一个数据框的列替换数据框列中的一些条目