任务':app:transformClassesWithDexForRelease的执行失败

时间:2016-04-11 13:51:32

标签: android proguard

启用proguard

后弹出问题
  

错误:任务执行失败   ':应用程序:transformClassesWithDexForRelease'。>   com.android.build.api.transform.TransformException:   com.android.ide.common.process.ProcessException:   org.gradle.process.internal.ExecException:进程'命令   '/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin/java'”   完成非零退出值1

未捕获的翻译错误:com.android.dx.cf.code.SimException:com.android.dx.rop.cst.CstMethodRef无法强制转换为com.android.dx.rop.cst.CstInterfaceMethodRef 1错误;中止

这是我的build.gradle代码

{

    apply plugin: 'com.android.application'


    android {

        compileSdkVersion 23
        buildToolsVersion "23.0.3"

        defaultConfig {
            applicationId "com.name.app"
            minSdkVersion 17
            targetSdkVersion 23
            multiDexEnabled true
        }

        dexOptions {
         javaMaxHeapSize "4g"
        }


        buildTypes {
            release {
                minifyEnabled true
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
                debuggable true
                jniDebuggable true
                renderscriptDebuggable true
            }
        }
    }

    dependencies {
        compile project(':chartboostSDK')
        compile project(':flurry_lib')
        compile project(':googleCloudMessaging_lib')
        compile project(':mainLibProj')
        compile project(':localytics_lib')
        compile project(':mobihelp_sdk_android_v1534')
        compile project(':unityandroidresources')
        compile project(':iAB_lib')
        compile project(':etcetera_lib')
        compile 'com.google.code.gson:gson:2.3.1'
        compile 'com.google.android.gms:play-services:+'
        compile files('libs/FlurryPlugin.jar')
        compile files('libs/FreshdeskPlugin.jar')
        compile files('libs/Prime31UnityActivity.jar')
        compile files('libs/adcolony-adapter-1.1.6.jar')
        compile files('libs/android-bridge.jar')
        compile files('libs/apsalar.jar')
        compile files('libs/apsalarUnity3d.jar')
        compile files('libs/bolts-android-1.2.1.jar')
        compile files('libs/chartboost-adapter-1.0.6.jar')
        compile files('libs/crittercism_v5_4_3_sdkonly.jar')
        compile files('libs/dagger.jar')
        compile files('libs/emojiplugin.jar')
        compile files('libs/in-app-purchasing-2.0.61.jar')
        compile files('libs/javax.inject.jar')
        compile files('libs/mediationsdk-6.3.5.jar')
        compile files('libs/nativex-adapter-1.0.3.jar')
        compile files('libs/nineoldandroids.jar')
        compile 'com.android.support:support-annotations:23.1.1'
        compile files('libs/tapjoyconnectlibrary.jar')
        compile files('libs/tapjoyunitywrapper.jar')
        compile files('libs/unity-classes.jar')
        compile files('libs/vungle-adapter-1.1.6.jar')
        compile files('libs/unity-classes.jar')
    }

}

0 个答案:

没有答案