android - Geckoview (Firefox webview) Gradle 冲突问题( Lollipop 版本)

标签 android firefox webview geckoview

我指的是 https://wiki.mozilla.org/Mobile/GeckoView 并且还使用 Exo 播放器。 这正在造成 Gradle 冲突。

[Error image][1]/image/z8Axo.png

我必须尝试从 Mozilla Gradle 中排除 exoplayer,但仍然无法正常工作。

implementation 'com.google.android.exoplayer:exoplayer:2.10.5'
[![enter image description here][1]][1]implementation ('org.mozilla.geckoview:geckoview-nightly:70.0.20190712095934'){
        exclude group: 'com.google.android.exoplayer', module:'exoplayer-core'
        exclude group: 'com.google.android.exoplayer', module:'exoplayer-dash'
    }

最佳答案

这可能是由于 GeckoView 在内部使用 ExoPlayer 的副本以支持 HLS。它不会通过 gradle 使用它,因此您将无法以这种方式排除它。我认为唯一的解决方案是让 GeckoView 使用 Proguard/R8 混淆/重命名内部 ExoPlayer 类或完全放弃 ExoPlayer 的使用。我在这里提交了一个错误来跟踪这个:https://bugzilla.mozilla.org/show_bug.cgi?id=1585323

关于android - Geckoview (Firefox webview) Gradle 冲突问题( Lollipop 版本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58168464/

相关文章:

Firefox 中带有自定义 header 的 Javascript Dojo AJAX (XHR) 请求

xaml - 我可以获得 Metro WebView 控件的当前 HTML 或 Uri 吗?

安卓 : Not able to change the text color of a button programmatically

android - 无法解决 Zxing 依赖项

html - Firefox 和 Chrome 中的绝对定位问题

javascript - Navigator.sendBeacon() 数据大小限制

ios - UIWebView 在 loadRequest 上调整大小

Android WebView - 第一次后无法再次设置基本身份验证

android - 移动应用不需要 CORS?

java - 如何使用房间数据库使进度条影响 UI 上的数据?