Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes unless CardView is added to Gradle dependencies #31

Closed
intrications opened this issue Nov 15, 2014 · 3 comments
Closed

Crashes unless CardView is added to Gradle dependencies #31

intrications opened this issue Nov 15, 2014 · 3 comments
Assignees

Comments

@intrications
Copy link

My code crashes with:

android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at com.tundem.aboutlibraries.ui.adapter.LibsRecyclerViewAdapter.onCreateViewHolder(LibsRecyclerViewAdapter.java:58)

unless I add

compile 'com.android.support:cardview-v7:21.0.0'

to my Gradle dependencies.

https://github.com/mikepenz/AboutLibraries/blob/master/library/build.gradle contains this dependency so I'm not sure why it isn't transferring from the library to my main project.

@mikepenz
Copy link
Owner

Hmmm that's strange. i think i had this same problem with the sample app. Perhaps i just add the libs which are used within the AboutLibraries library as dependency to the instructions. thanks

@yoavst
Copy link

yoavst commented Nov 17, 2014

@mikepenz another way to fix that is:

compile('com.mikepenz.aboutlibraries:library:4.3.5@aar') {
        transitive = true
    }

@mikepenz
Copy link
Owner

@yoavst thanks for the info. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants