Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错 #10

Open
swiftech opened this issue Mar 13, 2018 · 1 comment
Open

编译报错 #10

swiftech opened this issue Mar 13, 2018 · 1 comment

Comments

@swiftech
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

环境:
AndroidStudio 3.0.1

@autismbug
Copy link

autismbug commented May 22, 2018

v4 包重复了,应该是 tess-two.tesseract3.01-leptonica1.68-LibJPEG6b.jar 中也有 v4 的依赖。
把 app 目录下的 build.gradle 中的 dependencies 修改下就可以了。

dependencies {
//compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
compile files('libs/tess-two.tesseract3.01-leptonica1.68-LibJPEG6b.jar')
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants