Android Studio UNEXPECTED TOP-LEVEL EXCEPTION:

前端 未结 3 819
失恋的感觉
失恋的感觉 2021-01-14 05:04

Today I am faced with a massive error that doesn\'t let me run a sample project on my phone.

When Android Studio is building the project, it first shows the followin

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-14 05:18

    It seems your libs folder & library project xyzSDK contains same library, which is causing issues while converting to dex

    You can try to identify such library and remove it from one place. Or excluding it like this

    compile project(':xyzSDK'){
          exclude module: 'support-v4'
        }
    

    I have taken example of support-v4, as i have faced similar issues due to this one previously.

提交回复
热议问题