ionic 打包报某些jar包重复

configurations {
implementation.exclude group: 'com.google.zxing'
}

简单粗暴,谁重复,把谁丢到里面,然后把configurations丢到android下面,当然,这里的重复包你需要百度一下,因为error信息暴露出来的不是那个冲突的包

如下:

android {

    defaultConfig {
        versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
        applicationId privateHelpers.extractStringFromManifest("package")

        if (cdvMinSdkVersion != null) {
            minSdkVersion cdvMinSdkVersion
        }
    }
    configurations {
implementation.exclude group: 'com.google.zxing'
}

    lintOptions {
      abortOnError false;
    }

你可能感兴趣的:(工作笔记)