多个dex文件定义Lcom / google / android / gms / internal / zzee;

时间:2017-10-16 06:03:57

标签: java android build

我有这个错误,我需要帮助

错误:将字节码转换为dex时出错: 原因:com.android.dex.DexException:多个dex文件定义Lcom / google / android / gms / internal / zzee;

错误:任务':app:transformClassesWithDexForDebug'执行失败。

  

com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:执行时出错带有参数的主要类com.android.dx.command.Main的java进程{--dex --num-threads = 4 --output / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / transforms / dex / debug / folders / 1000 / 1f / main / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / annotations-java5-15.0_20daf95e9c588e883f857b4459bf853a8aaf652d.jar / Users / user / Desktop /新的android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_1e6068a2d6aa999f94f7465b7f74a3fffecbcef8.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_e193d09fd5b30fff152242a687641c835000290d.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_4ebbe3ea2b10584726dbb1b0ca790989581a6de3.jar / U sers / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / debug_6308a2de268522ead9750ec4c767de047e91d068.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_356d0f76eb98feffb69edbf98f7e898b0c4e763d.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_d65f51267bf33a25337a110665b4a52f9840efba.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre- dexed / debug / classes_f88772d75601aa364908f819fae052749aa95154.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_383f611d8e2235ad2baf048495b734af473f8bc6.jar / Users / user / Desktop / new android / SuperViewWeb / app / build /中间体/ pre-dexed / debug / classes_9438863a8dd9d36e4e643d0b8f490dbf9af38a1b.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_910cd67fa181d29af69b4a71f11f831888d72bac.jar / Users / user / Desktop / new android / SuperV iewWeb / app / build / intermediates / pre-dexed / debug / classes_60fa755866ea9fd089c7bd4ebda9fc38c7b084dd.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_410e3d7b23b82f06c4525e70faf8fd6c1248ecbb.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_892490356e694a1fedd403b149868794a28d54a6.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_f9d94b0bb23896a10de282ec34ea6ab8dd481ce2.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_2b19da994484b3e43dee858a9c086e398709a361.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_8c13feef140a4cfbcc65757f9ba6d6ea0ae4af40 .jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_fc0ccd4922c3da0ee499235b6c9533b989b3633e.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre -dexed / debug / classes_4c223d117125b12edcfee5ee30b9e1d77fa58a81.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_73d3f1ccbb9a4af69d66ddee95a2f27f22dd3457.jar / Users / user / Desktop / new android / SuperViewWeb / app / build /intermediates/pre-dexed/debug/classes_fa6558aff0955604a2c9c10e8a1608380c30fe6e.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_bc66170fae63575572065de5df1468b5e87d18c2.jar / Users / user / Desktop / new android / SuperViewWeb /app/build/intermediates/pre-dexed/debug/classes_7e963998b4ba1231fd0de6ba4826290bafe06d09.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_394c617c1bd4d19ab378a08f176a8bef0bfaacd9.jar / Users / user / Desktop /新的android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_f2346f260fed423df8dc004fe1f20fdbdc09ff59.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_f0228895433a9 f80323b7c2aa97d573c99bb183a.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_41953ff0958266ca26ee01d871952c29cae13470.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre- dexed / debug / support-annotations-25.3.1_497c10fd61055cce2d5d56fe0e5c6e8782c4d0fa.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_bc28aeeaff00b743a4463310cce03e9d495dbe93.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_a3ac538684a748bb6dddfc2ffa9a61d91502b480.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_facb3263d9d5db916c93f402c56f675a3245cfc5.jar/ Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_b930fca0a55ef654be4c3b15104408b72bd05aff.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_d97fa99a76ad3605b6cde48657eb 38ee1bee4271.jar / Users / user / Desktop / new android / SuperViewWeb / app / build / intermediates / pre-dexed / debug / classes_a5e76dc4a8a9d8cc9e9e79ab3c43ea31dd51eca5.jar}

我的构建

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    defaultConfig {
        applicationId "android.prophotography"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 14
        versionName "3.4"
        manifestPlaceholders = [manifestApplicationId          : "${applicationId}",
                                onesignal_app_id               : "421ab730-adf3-48c4-9672-022860b4bb",
                                onesignal_google_project_number: "76241701780"]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.onesignal:OneSignal:3.+@aar'
    compile 'com.google.android.gms:play-services-gcm:11.0.4'
    compile "com.google.android.gms:play-services-location:11.0.4"
    compile 'com.github.quentin7b:android-location-tracker:3.2'
    compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-ads:10.0.1'
    compile 'com.google.firebase:firebase-crash:10.0.1'
    compile 'org.jetbrains:annotations-java5:15.0'
    compile 'com.github.hotchemi:android-rate:1.0.1'
}

apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案