Comments (5)
I haven`t change the buildToolsVersion, it still not works
from leanback-showcase.
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.
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.
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.
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)
- Wrong Aspect Ratio HOT 1
- 项目跑不起来 HOT 1
- udp audio can't paly in Exoplayer adapter HOT 1
- Unable to build project in android studio HOT 5
- AndroidX migration issue HOT 1
- fragment design through xml HOT 1
- Loader issue HOT 1
- Search icon hide inside custom fragement HOT 1
- Exoplayer button handling HOT 1
- app is installed after run through android studio but not showing in list of apk installed HOT 1
- Background color issue HOT 1
- How to implement GuidedTimePickerAction for GuidedStepSupportFragment? HOT 1
- scale issue HOT 1
- Slowing the scroll speed of browseFragment HOT 2
- Instead of creating Fragment every time on menu click how it's possible to check by findFragmentByTag()? HOT 1
- How to use PlaybackSeekDataProvider and take snapshots from running video? HOT 3
- Leanback Library & Paging Library HOT 2
- Service loop error HOT 2
- Did you forget to include architecture components with leanback examples? HOT 1
- Customization of Detail Fragment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leanback-showcase.