Android Studio build error - Multiple dex files define Landroid/support/v4/

前端 未结 11 840
别那么骄傲
别那么骄傲 2020-12-17 08:56

I am unable to build my project in Android Studio. I get the following error:

Error:Android Dex: [RaditazAndroid] Unable to execute DX
Error:Android Dex: [R         


        
11条回答
  •  清酒与你
    2020-12-17 09:15

    Away from Android Studio, I opened the project in finder/workspace and did this:

    1- MyProject folder -> build -> intermediate -> dex-cache -> cache.xml, and deleted all support-v4.jar items.

    2- Also away from Android Studio, Went to every module in my project -> lib folder -> and deleted support-v4.jar as well.

    Then cleaned the project and ran it and it worked thanks god :)

提交回复
热议问题