引入com.jakewharton:butterknife:8.8.1报错

错误如下,v4包冲突

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

解决方法为:

compile ('com.jakewharton:butterknife:8.8.1'){
    exclude group : 'com.android.support'
}
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

你可能感兴趣的:(Android,问题)