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

前端 未结 11 681
别那么骄傲
别那么骄傲 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:33

    In case you have:

    compile 'com.android.support:recyclerview-v7:24.2.0'
    compile('com.android.support:appcompat-v7:23.2.0') { exclude group: 'com.google.android', module: 'support-v4' }
    

    in your project, add also:

    compile 'com.android.support:support-v4:24.2.0'
    

    or

    compile 'com.android.support:design:24.2.0'
    

提交回复
热议问题