Unable to merge dex

前端 未结 30 2683
深忆病人
深忆病人 2020-11-21 22:14

I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message:

Error:         


        
30条回答
  •  情深已故
    2020-11-21 22:47

    One of the possibilities is: the presence of the same library but with different versions in the dependencies.

    I had this problem with the following lines in gradle file:

    • compile fileTree(include: ['*.jar'], dir: 'libs')
    • compile 'com.google.code.gson:gson:2.8.2'

    The gson library was in my libs directory but with a previous version. I deleted the gson-2.3.1.jar from the libs directory and everything is back to normal.

提交回复
热议问题