android : Error converting byte to dex

后端 未结 30 1783
鱼传尺愫
鱼传尺愫 2020-12-01 10:25

So, I am getting the following error while running the project after upgrading build.gradle (Project) from

dependencies {
        classpath \'com.android.too         


        
30条回答
  •  醉话见心
    2020-12-01 10:54

    If you have multiple projects, make sure you are not adding a dependency multiple times, I needed to exclude the other project's dependency like this:

    compile(project(':OtherProject-SDK')) {
        compile.exclude module: 'play-services-gcm'
        compile.exclude module: 'play-services-location'
        compile.exclude module: 'support-v4'
        compile.exclude module: 'okhttp'
    }
    

提交回复
热议问题