解決 Error:Execution failed for task 'preDexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command finished with non-zero exit value 1

解決 Error:Execution failed for task ‘preDexDebug’. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command  finished with non-zero exit value 1

  • 檢查 用到的 jar libs 內是不是有重復到的元件
    support v4 之類的最容易衝到

  • 檢查 做jar時的jdk是不是夠高
    有些像<>  catch中直接 catch(InterruptedException | InterruptedException e)
    要用到jdk 1.7

  • 檢查 做jar時的jdk是不是太高jar用1.8
    project 只用1.7時
    考慮jar重包成1.7以下或project升級成1.8以上

Next: [Android] 下拉更新 SwipeRefreshLayout Prev: [Android] setClickListener in custom view