Closed jtmuti closed 4 years ago
The solution was too easy. Somehow the plug in generate bug to the \phonegap-plugin-barcodescanner/Xhampions-barcodescanner.gradle
dependencies {
//compile(name:'barcodescanner-release-2.1.5', ext:'aar')
}
This dependencie is making the duplicate class error. Comment it like above.
This thread has been automatically locked.
This is related to a big app that has developed since 2017. That is why I have not started to migrate all code to Ionic 4. That can also effect on this problem. I have generated the feature in Ionic devapp and it worked ok.
Gradle sync is working successfully but building does next Android studio error:
This is related to dependency resolution errors. I have not been able solve this problem. I tried to remove plugins that have used zxing -classes but the error still remained. I think the problem is related something inside the plugin.
config.xml
<plugin name="phonegap-plugin-barcodescanner" spec="~8.1.0" />
packege.json"@ionic-native/barcode-scanner": "^4.20.0",
ionic info
Build Gradle is: 5.4.1 Android Studio is 3.5.2 and using AndroidX