Error inflating class

If you are getting this error -> Error inflating class or rendering problem in Android Studio then goto  build.gradle ( module: app ) and add dependency for recyclerview.   You need to rebuild project in order to resolve the error displayed in rendering.

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile ''
    compile ''
    compile ''



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.