Coder Social home page Coder Social logo

Comments (7)

dakegu avatar dakegu commented on August 23, 2024

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.

dakegu avatar dakegu commented on August 23, 2024

fixed with latest update of SDK

from leanback-showcase.

olicmoon avatar olicmoon commented on August 23, 2024

I didn't have problem until installing latest SDK. After installation, I'm having this issue

from leanback-showcase.

dakegu avatar dakegu commented on August 23, 2024

you are right, it was fixed in previous release, then reintroduced in last release of support library

from leanback-showcase.

dakegu avatar dakegu commented on August 23, 2024

verified in new release rev. 36

from leanback-showcase.

SehgalDivij avatar SehgalDivij commented on August 23, 2024

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.

keyvanamiri avatar keyvanamiri commented on August 23, 2024

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)

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.