Whenever you see this type of problem, explicitly declare the probelmatic libraries in your gradle file with the same version of your other support libs:
implementation "com.android.support:animated-vector-drawable:26.1.0"
implementation "com.android.support:design:26.1.0"
implementation 'com.android.support:support-vector-drawable:26.1.0'
This happens because some of your dependencies use a different version of it.
Also, use implementation not compile. Compile has been deprecated:
implementation 'me.dm7.barcodescanner:zxing:1.9'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…