Android Studio unable to resolve error ':app:preDexDebug'

后端 未结 2 1368
再見小時候
再見小時候 2021-01-05 17:06

I\'m just moving on from Eclipse to the intimidating Android Studio and have trouble getting rid of, what appears to be a fairly common error.

Error:Executio         


        
相关标签:
2条回答
  • 2021-01-05 17:46

    you have a jar file or a lib appearing multiple times and need to work with "configuration" in your "gradle.build"

    look for how to analyze dependencies with something like:

    ./gradlew :app:dependencies
    

    background on wrapper

    ./gradlew --info clean assembleDebug > ../myProj_build
    

    will give you extra info in a build file that you can analyze for details on your "preDex" errors

    0 讨论(0)
  • 2021-01-05 17:59

    You added your jar dependencies as a compile dependency. You should added it as a "provided", (see you in the README).

    0 讨论(0)
提交回复
热议问题