Multiple dex files error when compiling with ant or Eclipse

前端 未结 8 407
猫巷女王i
猫巷女王i 2021-01-12 06:17

I am unable to build my application I am running the latest build tools downloaded today, this started happening after the update.

-dex:
   [dex] Converting          


        
相关标签:
8条回答
  • 2021-01-12 07:07

    I think the directory in bin change from

    com/XXX/XXX
    

    to

    classes/com/XXX.
    

    You can clean your project and solve it.

    0 讨论(0)
  • 2021-01-12 07:17

    Change implementation fileTree(include: ['.jar'], dir: 'libs') to provided fileTree(include: ['.jar'], dir: 'libs') in your app gradle.build> dependencies.

    Make sure it has changed in your Module Settings> Dependencies {include=[*jar] dir=libs} too. It must have a scope of Provided next to it and not Implementation.

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