Comments (7)
This is a known issue caused by a build tools bug within Developer Preview 3, we
should expect this being fixed in official N SDk.
On Wed, May 18, 2016, 6:12 PM Anirudh Dewani [email protected]
wrote:
5-18 18:11:22.093
12591-12591/android.support.v17.leanback.supportleanbackshowcase
E/AndroidRuntime: FATAL EXCEPTION: main
Process: android.support.v17.leanback.supportleanbackshowcase, PID: 12591
java.lang.RuntimeException: Unable to start activity
ComponentInfo{android.support.v17.leanback.supportleanbackshowcase/android.support.v17.leanback.supportleanbackshowcase.app.settings.SettingsExampleActivity}:
java.lang.IllegalStateException: Must specify preferenceTheme in theme
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2630)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2691)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1444)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6010)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:802)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:692)
Caused by: java.lang.IllegalStateException: Must specify preferenceTheme
in theme
at
android.support.v14.preference.PreferenceFragment.onCreate(PreferenceFragment.java:218)
at android.app.Fragment.performCreate(Fragment.java:2335)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:949)
at android.app.BackStackRecord.setLastIn(BackStackRecord.java:857)
at android.app.BackStackRecord.calculateFragments(BackStackRecord.java:880)
at android.app.BackStackRecord.run(BackStackRecord.java:727)
at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.Fragment.performStart(Fragment.java:2374)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1027)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1153)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2044)
at
android.app.FragmentController.dispatchStart(FragmentController.java:187)
at android.app.Activity.performStart(Activity.java:6681)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2593)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2691)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1444)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6010)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:802)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:692)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1
from leanback-showcase.
fixed with latest update of SDK
from leanback-showcase.
I didn't have problem until installing latest SDK. After installation, I'm having this issue
from leanback-showcase.
you are right, it was fixed in previous release, then reintroduced in last release of support library
from leanback-showcase.
verified in new release rev. 36
from leanback-showcase.
How do I solve this?
I haven't worked with Preference Activity before and I am not aware of the whole 'Preference Theme' thing.
from leanback-showcase.
Could you please clarify if you're seeing a crash or you're just wondering what preferenceTheme is used for? Support library PreferenceFragments require you to define preferenceTheme. This attribute references a style which defines the look and layout of each one of the individual preferences and fragments. If you're installing this app on TV, we have a leanback-styled theme of @style/PreferenceThemeOverlay.v14.Leanback. If you take a look at "Theme.Example.LeanbackPreferences" you can see how it's defined there.
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.