Coder Social home page Coder Social logo

Comments (5)

tracyliu1 avatar tracyliu1 commented on July 21, 2024

I haven`t change the buildToolsVersion, it still not works

from leanback-showcase.

keyvanamiri avatar keyvanamiri commented on July 21, 2024

Which device and Android version are you running this app on? I'm guessing you're installing it on a Pre-L device (API level below 21). The inflating issue you're getting should be related to some animator APIs that were introduced in API 21. Those APIs are now made compatible for MediaNowPlayingView, and you shouldn't be seeing this issue in the new support library release.

from leanback-showcase.

dhaval0122 avatar dhaval0122 commented on July 21, 2024

not working with sony bravia Android(5.1.1) TV. any solution?

Process: com.djandroid.jdroid.aarti, PID: 2676
                                                                          android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v17.leanback.widget.MediaNowPlayingView
                                                                              at android.view.LayoutInflater.createView(LayoutInflater.java:633)
                                                                              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
                                                                              at android.support.v17.leanback.widget.AbstractMediaItemPresenter$ViewHolder.<init>(AbstractMediaItemPresenter.java:207)
                                                                              at android.support.v17.leanback.widget.AbstractMediaItemPresenter.createRowViewHolder(AbstractMediaItemPresenter.java:431)
                                                                              at android.support.v17.leanback.widget.RowPresenter.onCreateViewHolder(RowPresenter.java:310)
                                                                              at android.support.v17.leanback.widget.ItemBridgeAdapter.onCreateViewHolder(ItemBridgeAdapter.java:315)
                                                                              at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6073)
                                                                              at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5243)
                                                                              at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5153)
                                                                              at android.support.v17.leanback.widget.GridLayoutManager.getViewForPosition(GridLayoutManager.java:971)
                                                                              at android.support.v17.leanback.widget.GridLayoutManager$2.createItem(GridLayoutManager.java:1464)
                                                                              at android.support.v17.leanback.widget.SingleRow.appendVisibleItems(SingleRow.java:111)
                                                                              at android.support.v17.leanback.widget.Grid.appendVisibleItems(Grid.java:371)
                                                                              at android.support.v17.leanback.widget.GridLayoutManager.appendVisibleItems(GridLayoutManager.java:1702)
                                                                              at android.support.v17.leanback.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:1910)
                                                                              at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3374)
                                                                              at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3183)
                                                                              at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3627)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                                              at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                                              at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                                              at android.view.View.layout(View.java:15671)
                                                                              at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                                              at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                              at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                              at android.view.View.layout(View.java:15671)
                                                                          	at android.view.ViewGroup.layout(ViewGroup.java:50

from leanback-showcase.

dakegu avatar dakegu commented on July 21, 2024

The sample app works on TV emulator API 22.

you need post a more logs after that about what is causing inflating error for MediaNowPlayingView.
Is it being obfuscated by proguard, can you do a dexdump see if the class is in your apk?

from leanback-showcase.

dakegu avatar dakegu commented on July 21, 2024

I believe the sample was fixed to work with lower platform (API level <21), feel free to reopen it if it's not.

from leanback-showcase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.