Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android构建失败,无法使用exoplayer_Java_Android_Gradle_Exoplayer - Fatal编程技术网

Java Android构建失败,无法使用exoplayer

Java Android构建失败,无法使用exoplayer,java,android,gradle,exoplayer,Java,Android,Gradle,Exoplayer,我将exoplayer与我的应用程序一起用于播放视频。当我使用模拟器或手机运行应用程序时,它工作正常。但当我尝试构建apk时,它给出了以下错误“任务的执行失败”:app:transformClassesWithJarMergingForDebug com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:com/google/android/exoplayer2/text/Caption

我将exoplayer与我的应用程序一起用于播放视频。当我使用模拟器或手机运行应用程序时,它工作正常。但当我尝试构建apk时,它给出了以下错误“任务的执行失败”:app:transformClassesWithJarMergingForDebug

com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:com/google/android/exoplayer2/text/CaptionStyleCompat$EdgeType.class`

这是我的应用程序gralde文件

 compile fileTree(include: ['*.jar'], dir: 'libs')
//    compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':tedpicker')
compile project(':multiSelectSearchLib')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
//Twitter Login
compile('com.twitter.sdk.android:twitter:1.13.3@aar') {
    transitive = true;
}

//Splash Screen animation library
compile project(':contactPickerLib')
//Applozic chat sdk
compile project(':chatcommons')
compile project(':chatkit')
compile project(':chatkitui')
compile project(':chataudiovideo')
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
    transitive = true;
}

compile project(':toro-extended')

compile 'com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:1.0@aar'
compile 'org.jetbrains:annotations-java5:15.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.google.android.gms:play-services-plus:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-ads:10.0.1'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.0'
compile 'com.github.glomadrian:Grav:1.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.squareup.retrofit2:retrofit:2.2.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.nex3z:toggle-button-group:1.0.0'
compile 'com.appyvet:materialrangebar:1.3'
compile 'com.hbb20:ccp:1.7.6'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.android.support:support-annotations:23.3.0'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:gridlayout-v7:25.3.1'
compile 'com.android.support:multidex:1.0.0'
testCompile 'junit:junit:4.12'
provided 'org.glassfish:javax.annotation:10.0-b28'
如何解决这个问题


谢谢

嗨,问题解决了。谢谢,请确认。你是怎么修好的。