zoukankan      html  css  js  c++  java
  • Android 开发错误信息001

    Error:Execution failed for task ':app:dexDebug'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program Files (x86)Javajdk1.8.0_91injava.exe'' finished with non-zero exit value 2

    决定写一串异常错误信息,编号从001开始~

    这个错误很清晰,是重复加载jar造成的。比如我的:

    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        testCompile 'junit:junit:4.12'
        compile project(':netlibrary')
        compile files('libs/rxjava-1.1.0.jar')
    }

    去掉:

        compile fileTree(include: ['*.jar'], dir: 'libs')

    最后是:

    dependencies {
        testCompile 'junit:junit:4.12'
        compile project(':netlibrary')
        compile files('libs/rxjava-1.1.0.jar')
    }

    就好了~    

  • 相关阅读:
    Font Awesome 中文网
    mobileselect学习
    JavaScript模块化
    webpack基本使用
    MVVM架构方式
    http-server开启测试服务器
    json-server模拟服务器API
    vue-router
    git的使用
    Vue生命周期
  • 原文地址:https://www.cnblogs.com/yaxiaoke/p/5640748.html
Copyright © 2011-2022 走看看