Exoplayer r1.5.2无法解析com.google.android.exoplayer:exoplayer:r1.5.2

时间:2015-10-29 16:41:11

标签: android android-studio gradle exoplayer

尝试compile exoplayer r1.5.2 repository...时遇到问题。当我使用com.google.android.exoplayer:exoplayer:r1.4.2时,没有问题。

以下是编译代码:

enter image description here

然后抛出此错误:

enter image description here

1 个答案:

答案 0 :(得分:3)

我也有这个问题:我已将.... Session session = this.sessionFactory.getCurrentSession(); //Here it starts my solution Criteria cr = session.createCriteria(ContentElementTypeProperty.class); cr.createCriteria("testUnitType", "tut", Criteria.LEFT_JOIN, Restrictions.eq("tut.id", tutId)); //Here it ends my solution cr.createCriteria("business").add(Restrictions.eq("id", businessId)); .... 添加到我的compile 'com.google.android.exoplayer:exoplayer:r1.5.2'

app/build.gradle

在Android Studio中尝试了dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:design:23.1.0' compile 'com.google.android.exoplayer:exoplayer:r1.5.2' } ,但收到了上述错误。

解决方案

我通过升级到gradle 2.6并从shell调用gradle来下载依赖项:

sync project

升级Gradle

修改$ ./gradlew build 中的distributionUrl行:

<project dir>/gradle/wrapper/gradle-wrapper.properties