나는 모두 스택 오버플로 및 구글 내 질문에 관련된 모든 솔루션을 시도했습니다. 나는 오랫동안이 오류에 질려했다. 나는 단지이오류 해결 방법 : ': app : transformClassesWithJarMergingForDebug'.?
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.inspirenetz.app.inpartner"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
testOptions {
unitTests.returnDefaultValues = true
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.json:json:20140107'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.github.satyan:sugar:1.4'
compile 'com.google.code.gson:gson:2.4'
compile 'com.fasterxml.jackson.core:jackson-core:2.4.1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.1'
compile group: 'cz.msebera.android' , name: 'httpclient', version: '4.4.1.1'
compile 'com.embarkmobile:zxing-android-minimal:[email protected]'
compile 'com.embarkmobile:zxing-android-integration:[email protected]'
compile 'com.google.zxing:core:3.2.1'
// Avoid the 64K limit, Multidex support for Android 5.0 and higher
compile 'com.android.support:multidex:1.0.1'
compile files('libs/mswiperAPIVer2.0.jar')
repositories { mavenCentral()
maven { url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/" }
}
}
여기 내 build.gradle입니다 다음과 같은 오류
을 얻고이 lib 디렉토리를 추가시 있도록
는 아래의 Gradle을 파일에 추가됩니다 스캔 QR 코드 lib 디렉토리를 사용하고 오류 도대체 나에게 살해
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/zxing/aztec/AztecDetectorResult.class
정말 일부 expec 감사시겠습니까 ted 솔루션도 많은 관련 질문을 해결할 것입니다
미리 감사드립니다.
이것은 문제에 대한 답이 아닙니다. 문제가'zxing'에있는 경우, 예를 들어 언제든지 예를 들어. 대신에 'google.vision.barcode'. 그것은 지원 lib에 선적 된 Google 기본 바코드 라이브러리입니다. 아마도 [이 게시물] (https://www.varvet.com/blog/android-qr-code-reader-made-easy/)로 곧바로 QR 리더기를 사용할 수 있습니다! – Algar
오, 오, 내 마지막으로 나는이 질문에 답장을 얻었다. 감사합니다.,하지만이 코드를 사용하고 그 성능에 대해서 알고있을 수도 있습니다. – Raju
실제로 위의 lib도 제게 하나의 프로젝트에서 잘 작동하지만 다른 프로젝트를 추가하려고 할 때 이 오류가 발생했습니다 – Raju