compile 'com.android.support:multidex:1.0.1' happened wrong: all com android support libraries must use the exact same version

前端 未结 4 1902
梦如初夏
梦如初夏 2021-02-13 20:57

Today, I update my Android studio to 2.3, and I update gradle to 3.4.1. But when I build my project, an error occurred: This is the error So I add \" buildToolsVersion \'25.0.0\

4条回答
  •  独厮守ぢ
    2021-02-13 21:32

    I'm also using updated Studio. You should use each library with the same version in order to avoid the Manifest Merger issue. Like this.

     // To Support Design, CardView and RecyclerView Library
    compile 'com.android.support:appcompat-v7:25.2.0'
    compile 'com.android.support:design:25.2.0'
    compile 'com.android.support:recyclerview-v7:25.2.0'
    compile 'com.android.support:cardview-v7:25.2.0'
    compile 'com.android.support:palette-v7:25.2.0'
    
    // To Support MultiDex
    compile 'com.android.support:multidex:1.0.1'
    

    Here you will notice that each library have the same version.

提交回复
热议问题