【问题标题】:unable to debug app in my usb attached mobile via adb and error is mentioned below here无法通过 adb 在我的 USB 连接移动设备中调试应用程序,错误在下面提到
【发布时间】:2017-12-23 16:23:33
【问题描述】:

错误: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\ app\build\intermediates\incremental-runtime-classes\debug\instant-run.jar}

【问题讨论】:

    标签: android adb


    【解决方案1】:

    尝试在 build.gradle 中启用 multiDex:

    android {
    
    defaultConfig {
        ...
    
        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
    }
    
    dependencies {
    compile 'com.android.support:multidex:1.0.0'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      • 1970-01-01
      相关资源
      最近更新 更多