Couldn't compile android studio project

后端 未结 2 1726
半阙折子戏
半阙折子戏 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.

    0 讨论(0)
  • 2021-01-12 14:06

    Make sure to update both "Android Support Repository" and "Android Support Library".

    And also ensure the Gradle Sync is completed in Android Studio as @diptia suggested.

    0 讨论(0)
提交回复
热议问题