Error inflating class Android support design

前端 未结 5 1848
囚心锁ツ
囚心锁ツ 2021-02-19 08:03

What I am trying to do is use the new android support design library mentioned here: http://android-developers.blogspot.com/2015/05/android-design-support-library.html.

5条回答
  •  渐次进展
    2021-02-19 08:43

    This error can be caused due to reasons as mentioned below.

    1. This problem will likely occur when the version of your appcompat library and design support library doesn't match.

    Example of matching condition

      compile 'com.android.support:appcompat-v7:24.2.0' // appcompat library
    
      compile 'com.android.support:design:24.2.0' //design support library
    
    1. Your theme file in styles should not have

      #4A0958
      #4A0958
      

      It should look somewhat like this.

      
      

提交回复
热议问题