Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3880] Ti.UI.createWindow generates java.lang.RuntimeException - AppCompat does not support the current theme features

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-06-24T00:13:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAndrea
AssigneeShak Hossain
Created2016-06-19T10:18:03.000+0000
Updated2016-06-25T09:29:23.000+0000

Description

var win = Ti.UI.createWindow(); win.open(); generates [ERROR] : AndroidRuntime: FATAL EXCEPTION: main [ERROR] : AndroidRuntime: Process: com.braindoo.braindoo, PID: 16717 [ERROR] : AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.braindoo.braindoo/org.appcelerator.titanium.TiActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false } [ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3133) [ERROR] : AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3243) [ERROR] : AndroidRuntime: at android.app.ActivityThread.access$1000(ActivityThread.java:218) [ERROR] : AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1718) [ERROR] : AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : AndroidRuntime: at android.os.Looper.loop(Looper.java:145) [ERROR] : AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6917) [ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) [ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) [ERROR] : AndroidRuntime: Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false } [ERROR] : AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:421) [ERROR] : AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:278) [ERROR] : AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:243) [ERROR] : AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:114) [ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.setContentView(TiBaseActivity.java:532) [ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:650) [ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18) [ERROR] : AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6609) [ERROR] : AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134) [ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3086) [ERROR] : AndroidRuntime: ... 10 more

Comments

  1. Sharif AbuDarda 2016-06-24

    Hello, I tried to test in Android with SDK 5.3.0.GA. I did not see any error. The project run fine.
  2. Andrea 2016-06-25

    interesting way to solve issue, i will try it with my clients

JSON Source