android - java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. titanium -



android - java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. titanium -

i'm creating custom theme titanium application using theme generator. when run application it's crashing , log says need appcompact if set theme sdk > sdk 11.

and targeting android version api 19 , min sdk version api14, wonder why need appcompact.

this log says:

[error] : tiapplication: (main) [512,512] sending event: exception on thread: main msg:java.lang.runtimeexception: unable start activity componentinfo{a.s/org.appcelerator.titanium.tiactivity}: java.lang.illegalstateexception: need utilize theme.appcompat theme (or descendant) activity.; titanium 3.4.0,2014/09/25 16:42,b54c467 [error] : tiapplication: java.lang.runtimeexception: unable start activity componentinfo{a.s/org.appcelerator.titanium.tiactivity}: java.lang.illegalstateexception: need utilize theme.appcompat theme (or descendant) activity. [error] : tiapplication: @ android.app.activitythread.performlaunchactivity(activitythread.java:2195) [error] : tiapplication: @ android.app.activitythread.handlelaunchactivity(activ [error] : tiapplication: @ android.app.activitythread.access$800(activitythread.java:135) [error] : tiapplication: @ android.app.activitythread$h.handlemessage(activitythread.java:1196) [error] : tiapplication: @ android.os.handler.dispatchmessage(handler.java:102) [error] : tiapplication: @ android.os.looper.loop(looper.java:136) [error] : tiapplication: @ android.app.activitythread.main(activitythread.java:5017) [error] : tiapplication: @ java.lang.reflect.method.invokenative(native method) [error] : tiapplication: @ java.lang.reflect.method.invoke(method.java:515) [error] : tiapplication: @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:779) [error] : tiapplication: @ com.android.internal.os.zygoteinit.main(zygoteinit.java:595) [error] : tiapplication: @ dalvik.system.nativestart.main(native method) [error] : tiapplication: caused by: java.lang.illegalstateexception: need utilize theme.appcompat theme (or descendant) activity. [error] : tiapplication: @ android.support.v7.app.actionbaractivitydelegate.oncreate(actionbaractivitydelegate.java:108) [error] : tiapplication: @ android.support.v7.app.actionbaractivitydelegateics.oncreate(actionbaractivitydelegateics.java:57) [error] : tiapplication: @ android.support.v7.app.actionbaractivity.oncreate(actionbaractivity.java:98) [error] : tiapplication: @ org.appcelerator.titanium.tibaseactivity.oncreate(tibaseactivity.java:516) [error] : tiapplication: @ org.appcelerator.titanium.tiactivity.oncreate(tiactivity.java:18) [error] : tiapplication: @ android.app.activity.performcreate(activity.java:5231) [error] : tiapplication: @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) [error] : tiapplication: @ android.app.activitythread.performlaunchactivity(activitythread.java:2159) [error] : tiapplication: ... 11 more

you using actionbaractivity, requires appcompat theme. i'm not sure how you'd titanium, you'd either need switch appcompat theme or utilize regular activity (which shouldn't problem if you're targeting 11 or above).

android titanium appcompat

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -