无法通过adb在我的usb附加移动设备上调试应用程序,并在此处提到错误

时间:2017-07-18 16:55:51

标签: android adb

错误:java.lang.RuntimeException:com.android.build.api.transform.TransformException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com .android.ide.common.process.ProcessException:使用带有参数的主类com.android.dx.command.Main执行java进程时出错{--dex --verbose --force-jumbo --num-threads = 4 - -multi-dex --output C:\ Users \ Perfect \ AndroidStudioProjects \ RegistrationPage \ app \ build \ intermediates \ transforms \ dex \ debug \ folders \ 1000 \ 10000 \ instant-run_00ce957cbbc400d4da775636a5cd1b3714505826 C:\ Users \ Perfect \ AndroidStudioProjects \ RegistrationPage \应用\构建\中间体\增量运行时类\调试\即时run.jar}

1 个答案:

答案 0 :(得分:0)

尝试在build.gradle中启用multiDex:

android {

defaultConfig {
    ...

    // Enabling multidex support.
    multiDexEnabled true
}
...
}

dependencies {
compile 'com.android.support:multidex:1.0.0'
}