Tuesday, 28 July 2015

java.lang.IllegalArgumentException: already added: Lcom/google/zxing/integration/android/IntentResult;


If you got this error when you compile.

java.lang.IllegalArgumentException: already added: Lcom/google/zxing/integration/android/IntentResult;


solution:

compile 'com.google.zxing:core:3.2.0'
compile 'com.google.zxing:android-integration:3.2.0'
compile 'com.journeyapps:zxing-android-embedded:3.0.2@aar'


remove "android-integration" it is in the embedded lib

if you don't want to have the scanner functionality in side of your app (embed), you can use  "android-integration" only with these two other libs.

if you want to embed the scanner inside of your app, you need the embedded lib and zing core.




No comments:

Post a comment