dexDebug ExecException finished with non-zero exit value 2
這個問題, 好像大都是超過65536個函數所引起, 所以只要想辦法減少函數數目或在build.gradle中宣告
multiDexEnabled true 即可解決
android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.myapplication" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true } ....