Couldn't compile android studio project

后端 未结 2 1724
半阙折子戏
半阙折子戏 2021-01-12 13:51

I want to add a materialdrawer library to my project. When I add dependency, my build.gradle looks like this

 dependencies {
    compile fileTree(dir: \'lib         


        
2条回答
  •  囚心锁ツ
    2021-01-12 14:01

    com.mikepenz:materialdrawer:4.4.8@aar

    It seems like the third party library requires the appcompat v23.1.1.

    To solve it :

    1) Make sure that com.android.support:appcompat-v7:23.1.1 is installed. Check via your SDK Manager.

    2) Add compile 'com.android.support:appcompat-v7:23.1.1' in your build.gradle file.

    3) Remove compile 'com.android.support:appcompat-v7:22.1.1' from your dependencies.

提交回复
热议问题