【问题标题】:Exo Player With Cordova in IONIC FrameworkIONIC 框架中带有 Cordova 的 Exo 播放器
【发布时间】:2017-10-25 12:47:42
【问题描述】:

在处理媒体流时遇到了一些困难,我有无线电流链接,我尝试使用 Cordova 的媒体流,但它似乎有一些限制,比如只能在全屏中工作,我开始知道一个名为“Exo”的插件Player' 但在实施过程中它无法构建/运行 android. 任何人都可以帮助我或告诉我替代它。

运行cordova build android时出现以下错误

错误:cmd:命令失败,退出代码 1 错误输出: FAILURE:构建失败并出现异常。

  • 出了什么问题: 配置根项目“android”时出现问题。

    无法解析配置“:_debugApkCopy”的所有依赖项。 找不到 com.android.support:support-annotations:25.4.0。 要求: :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-core:r2.5.1 :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-dash:r2.5.1 :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-hls:r2.5.1 :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-smoothstreaming:r2.5.1 :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-ui:r2.5.1 找不到 com.android.support:support-core-utils:25.4.0。 要求: :android:unspecified > com.google.android.exoplayer:exoplayer:r2.5.1 > com.google.android.exoplayer:exoplayer-dash:r2.5.1

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

【问题讨论】:

    标签: cordova ionic-framework exoplayer


    【解决方案1】:

    在 build.gradle 文件中添加以下内容(以粗体突出显示。)

    allprojects {
        repositories {
            mavenCentral();
            jcenter();
            **maven { url 'https://maven.google.com' }**
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-19
      • 1970-01-01
      • 1970-01-01
      • 2012-06-04
      • 2018-06-13
      • 2015-04-07
      • 2013-03-22
      • 1970-01-01
      相关资源
      最近更新 更多