【问题标题】:Issues with Geckoview (Firefox webview) Graddle conflict (lollipop version)Geckoview (Firefox webview) Gradle 冲突问题(棒棒糖版)
【发布时间】:2020-01-29 18:46:14
【问题描述】:

我指的是https://wiki.mozilla.org/Mobile/GeckoView 并且还使用 Exo Player。 这会造成 Gradle 冲突。

[Error image][1]https://i.stack.imgur.com/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'
    }

【问题讨论】:

    标签: android firefox webview geckoview


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      他们在最新版本 84.0.20201028092421 中重命名了 exoplayer 包。 在 gradle 中使用以下版本:

       geckoviewChannel = "nightly"
       geckoviewVersion = "84.0.20201028092421"
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-02-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-12-15
        • 2016-02-03
        • 1970-01-01
        相关资源
        最近更新 更多