[AC-3880] Ti.UI.createWindow generates java.lang.RuntimeException - AppCompat does not support the current theme features
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-06-24T00:13:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Andrea |
Assignee | Shak Hossain |
Created | 2016-06-19T10:18:03.000+0000 |
Updated | 2016-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
Hello, I tried to test in Android with SDK 5.3.0.GA. I did not see any error. The project run fine.
interesting way to solve issue, i will try it with my clients