我正在尝试为我的Android项目设置Appium测试,但是一旦我将它包含在我的Gradle中,我就会收到错误 . 起初我得到一个java.util.zip.ZipException,所以我添加了“exclude module:'cglib'”,但现在我收到此错误,

错误:任务':app:preDexDebug'的执行失败 . com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java''完成非零退出值1

我的gradle文件如下:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0 rc3"

  defaultConfig {
    applicationId "com.ringcentral.rcandroidsdk"
    minSdkVersion 15
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    multiDexEnabled false
  }
  buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
  }
  lintOptions {
    abortOnError false
   }
}

 dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'com.pubnub:pubnub-android:3.7.4'
    // Adding this below causes errors
    compile ('io.appium:java-client:3.1.0'){
       exclude module: 'cglib'
    }

}