All the libraries must use the same versions

后端 未结 2 843
天命终不由人
天命终不由人 2020-12-20 06:57

My depencies

dependencies {
compile \'me.dm7.barcodescanner:zxing:1.9\'
implementation fileTree(dir: \'libs\', include: [\'*.jar\'])
implementation \'com.and         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-20 07:50

    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'
    

提交回复
热议问题