Android 4.4上的Telerik RadSideDrawer崩溃

时间:2017-11-08 14:26:29

标签: android angular crash telerik nativescript

Telerik SideDrawer似乎只在 Android 4.4.2 上出现问题(或者只是4.4,这是TNS支持的最低版本)。我已经在存储库问题部分报告了它,但还没有得到答案(https://github.com/telerik/nativescript-ui-feedback/issues/388)。

也许有人可以帮我解决问题。我尝试了一些东西,但无法修复它。

下面附有演示样本,但我们在制作应用上遇到类似问题,Android 4.4设备仍然在这里广泛使用,所以这是一个问题。

  • Progress NativeScript UI版本: 3.1.4
  • CLI: 3.2.1
  • 跨平台模块: 3.2.0
  • 运行时间 3.2.0

请告诉我们如何尽可能详细地重新创建问题。

  1. 在Android 4.4.2上启动'crashtestdummy'应用。
  2. 最小化它(点击“主页”按钮)。
  3. 打开其他应用(此步骤不是必需的)。
  4. 打开当前正在运行的应用列表(即:按住主屏幕按钮,或使用专用按钮显示当前在设备中运行的应用列表)。
  5. 选择'crashtestdummy' app。
  6. 它应该会崩溃,如截图所示。
  7. 我认为这个组件在Android 4.4上运行正常,因为它是TNS支持的最低版本。

    是否涉及代码?如果是这样,请分享最小的重新创建问题。

    我附加了一个演示项目'crash test dummy.zip',它只是基本的NS Angular模板+ nativescript-pro-ui +一个简单的SideDrawer实现。

    • 我无法在Android 4.4.2仿真器上重现该问题,仅在物理设备上重现。
    • 我尝试更新到3.3.0 CLI,运行时和tns-core-modules,但问题仍然存在。

    crash test dummy.zip

    1. 打开应用程序。
    2. enter image description here

      1. 检查一切都很好。
      2. enter image description here

        1. 最小化应用程序,您可以切换到另一个(或不)。打开正在运行的应用列表,然后再次选择您的应用。
        2. enter image description here

          1. 崩溃。
          2. enter image description here

            1. 设备信息。
            2. enter image description here

              设备上抛出异常:

              An uncaught Exception occurred on "main" thread.
              java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crashtestdummy.test/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: 
              Calling js method onCreate failed
              
              Error: java.lang.ClassCastException: android.widget.AbsListView$SavedState cannot be cast to java.lang.Boolean
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
                  android.os.Parcel.readParcelable(Parcel.java:2107)
                  android.os.Parcel.readValue(Parcel.java:2016)
                  android.os.Parcel.readSparseArrayInternal(Parcel.java:2374)
                  android.os.Parcel.readSparseArray(Parcel.java:1738)
                  android.os.Parcel.readValue(Parcel.java:2073)
                  android.os.Parcel.readArrayMapInternal(Parcel.java:2317)
                  android.os.Bundle.unparcel(Bundle.java:249)
                  android.os.Bundle.getSparseParcelableArray(Bundle.java:1273)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:827)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
                  android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1848)
                  android.app.Activity.onCreate(Activity.java:902)
                  com.tns.Runtime.callJSMethodNative(Native Method)
                  com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
                  com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
                  com.tns.Runtime.callJSMethod(Runtime.java:953)
                  com.tns.Runtime.callJSMethod(Runtime.java:937)
                  com.tns.Runtime.callJSMethod(Runtime.java:929)
                  com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
                  android.app.Activity.performCreate(Activity.java:5264)
                  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
                  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
                  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
                  android.app.ActivityThread.access$800(ActivityThread.java:151)
                  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
                  android.os.Handler.dispatchMessage(Handler.java:110)
                  android.os.Looper.loop(Looper.java:193)
                  android.app.ActivityThread.main(ActivityThread.java:5299)
                  java.lang.reflect.Method.invokeNative(Native Method)
                  java.lang.reflect.Method.invoke(Method.java:515)
                  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
                  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
                  dalvik.system.NativeStart.main(Native Method)
              File: "file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 584, column: 18
              
              StackTrace: 
                  Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 584, column: 19
                  Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25
              
              
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
                  at android.app.ActivityThread.access$800(ActivityThread.java:151)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
                  at android.os.Handler.dispatchMessage(Handler.java:110)
                  at android.os.Looper.loop(Looper.java:193)
                  at android.app.ActivityThread.main(ActivityThread.java:5299)
                  at java.lang.reflect.Method.invokeNative(Native Method)
                  at java.lang.reflect.Method.invoke(Method.java:515)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
                  at dalvik.system.NativeStart.main(Native Method)
              Caused by: com.tns.NativeScriptException: 
              Calling js method onCreate failed
              
              Error: java.lang.ClassCastException: android.widget.AbsListView$SavedState cannot be cast to java.lang.Boolean
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
                  com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
                  android.os.Parcel.readParcelable(Parcel.java:2107)
                  android.os.Parcel.readValue(Parcel.java:2016)
                  android.os.Parcel.readSparseArrayInternal(Parcel.java:2374)
                  android.os.Parcel.readSparseArray(Parcel.java:1738)
                  android.os.Parcel.readValue(Parcel.java:2073)
                  android.os.Parcel.readArrayMapInternal(Parcel.java:2317)
                  android.os.Bundle.unparcel(Bundle.java:249)
                  android.os.Bundle.getSparseParcelableArray(Bundle.java:1273)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:827)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
                  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
                  android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1848)
                  android.app.Activity.onCreate(Activity.java:902)
                  com.tns.Runtime.callJSMethodNative(Native Method)
                  com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
                  com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
                  com.tns.Runtime.callJSMethod(Runtime.java:953)
                  com.tns.Runtime.callJSMethod(Runtime.java:937)
                  com.tns.Runtime.callJSMethod(Runtime.java:929)
                  com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
                  android.app.Activity.performCreate(Activity.java:5264)
                  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
                  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
                  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
                  android.app.ActivityThread.access$800(ActivityThread.java:151)
                  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
                  android.os.Handler.dispatchMessage(Handler.java:110)
                  android.os.Looper.loop(Looper.java:193)
                  android.app.ActivityThread.main(ActivityThread.java:5299)
                  java.lang.reflect.Method.invokeNative(Native Method)
                  java.lang.reflect.Method.invoke(Method.java:515)
                  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
                  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
                  dalvik.system.NativeStart.main(Native Method)
              File: "file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 584, column: 18
              
              StackTrace: 
                  Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 584, column: 19
                  Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25
              
              
                  at com.tns.Runtime.callJSMethodNative(Native Method)
                  at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
                  at com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
                  at com.tns.Runtime.callJSMethod(Runtime.java:953)
                  at com.tns.Runtime.callJSMethod(Runtime.java:937)
                  at com.tns.Runtime.callJSMethod(Runtime.java:929)
                  at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
                  at android.app.Activity.performCreate(Activity.java:5264)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
                  ... 11 more
              Caused by: java.lang.ClassCastException: android.widget.AbsListView$SavedState cannot be cast to java.lang.Boolean
                  at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
                  at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
                  at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
                  at android.os.Parcel.readParcelable(Parcel.java:2107)
                  at android.os.Parcel.readValue(Parcel.java:2016)
                  at android.os.Parcel.readSparseArrayInternal(Parcel.java:2374)
                  at android.os.Parcel.readSparseArray(Parcel.java:1738)
                  at android.os.Parcel.readValue(Parcel.java:2073)
                  at android.os.Parcel.readArrayMapInternal(Parcel.java:2317)
                  at android.os.Bundle.unparcel(Bundle.java:249)
                  at android.os.Bundle.getSparseParcelableArray(Bundle.java:1273)
                  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:827)
                  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
                  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
                  at android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1848)
                  at android.app.Activity.onCreate(Activity.java:902)
                  ... 21 more
              

              logcat的

              V/ActivityThread(19641): Performing resume of ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} finished=false
              D/ActivityThread(19641): ACT-AM_ON_RESUME_CALLED ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              V/ActivityThread(19641): Resume ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} started activity: false, hideForNow: false, finished: false
              V/ActivityThread(19641): Resuming ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} with isForward=true
              V/ActivityThread(19641): Scheduling idle handler for ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              D/ActivityThread(19641): ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              D/ActivityThread(19641): ACT-AM_ON_PAUSE_CALLED ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              D/ActivityThread(19641): ACT-PAUSE_ACTIVITY handled : 0 / android.os.BinderProxy@42118078
              V/ActivityThread(19641): Finishing stop of ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}: show=true win=com.android.internal.policy.impl.PhoneWindow@4229e1c8
              D/ActivityThread(19641): ACT-STOP_ACTIVITY_SHOW handled : 0 / android.os.BinderProxy@42118078
              V/ActivityThread(19641): Performing resume of ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} finished=false
              D/ActivityThread(19641): ACT-AM_ON_RESUME_CALLED ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              V/ActivityThread(19641): Resume ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} started activity: false, hideForNow: false, finished: false
              V/ActivityThread(19641): Resuming ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}} with isForward=true
              V/ActivityThread(19641): Scheduling idle handler for ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              D/ActivityThread(19641): ACT-RESUME_ACTIVITY handled : 1 / android.os.BinderProxy@42118078
              D/ActivityThread(19641): ACT-AM_ON_PAUSE_CALLED ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}
              D/ActivityThread(19641): ACT-PAUSE_ACTIVITY handled : 1 / android.os.BinderProxy@42118078
              D/dalvikvm(19641): create interp thread : stack size=128KB
              D/dalvikvm(19641): create new thread
              D/dalvikvm(19641): new thread created
              D/dalvikvm(19641): update thread list
              D/dalvikvm(19641): threadid=19: interp stack at 0x588fc000
              D/dalvikvm(19641): init ref table
              D/dalvikvm(19641): init mutex
              D/dalvikvm(19641): threadid=19: created from interp
              D/dalvikvm(19641): start new thread
              D/dalvikvm(19641): threadid=19: notify debugger
              D/dalvikvm(19641): threadid=19 (AsyncTask #4): calling run()
              V/ActivityThread(19641): Finishing stop of ActivityRecord{421189c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}: show=false win=com.android.internal.policy.impl.PhoneWindow@4229e1c8
              V/PhoneWindow(19641): DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{4230e350 com.crashtestdummy.test/com.tns.NativeScriptActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{421e0e08 I.E..... R....... 0,0-480,800}
              D/ActivityThread(19641): ACT-STOP_ACTIVITY_HIDE handled : 0 / android.os.BinderProxy@42118078
              D/OpenGLRenderer(19641): Flushing caches (mode 1)
              D/dalvikvm(19641): threadid=18: bye!
              D/OpenGLRenderer(19641): Flushing caches (mode 0)
              D/ActivityThread(19641): ACT-DESTROY_ACTIVITY handled : 0 / android.os.BinderProxy@42118078
              I/Choreographer(19641): Skipped 824 frames!  The application may be doing too much work on its main thread.
              V/ActivityThread(19641): ActivityRecord{421281c0 token=android.os.BinderProxy@42118078 {com.crashtestdummy.test/com.tns.NativeScriptActivity}}: app=com.tns.NativeScriptApplication@4211e320, appName=com.crashtestdummy.test, pkg=com.crashtestdummy.test, comp={com.crashtestdummy.test/com.tns.NativeScriptActivity}, dir=/data/app/com.crashtestdummy.test-1.apk
              D/AndroidRuntime(19641): Shutting down VM
              W/dalvikvm(19641): threadid=1: thread exiting with uncaught exception (group=0x41b4ece0)
              W/dalvikvm(19641): threadid=1: uncaught exception occurred
              W/System.err(19641): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crashtestdummy.test/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: 
              W/System.err(19641): Calling js method onCreate failed
              W/System.err(19641): Error: java.lang.ClassCastException: android.widget.AbsListView$SavedState cannot be cast to java.lang.Boolean
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
              W/System.err(19641):     android.os.Parcel.readParcelable(Parcel.java:2107)
              W/System.err(19641):     android.os.Parcel.readValue(Parcel.java:2016)
              W/System.err(19641):     android.os.Parcel.readSparseArrayInternal(Parcel.java:2374)
              W/System.err(19641):     android.os.Parcel.readSparseArray(Parcel.java:1738)
              W/System.err(19641):     android.os.Parcel.readValue(Parcel.java:2073)
              W/System.err(19641):     android.os.Parcel.readArrayMapInternal(Parcel.java:2317)
              W/System.err(19641):     android.os.Bundle.unparcel(Bundle.java:249)
              W/System.err(19641):     android.os.Bundle.getSparseParcelableArray(Bundle.java:1273)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:827)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
              W/System.err(19641):     android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1848)
              W/System.err(19641):     android.app.Activity.onCreate(Activity.java:902)
              W/System.err(19641):     com.tns.Runtime.callJSMethodNative(Native Method)
              W/System.err(19641):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
              W/System.err(19641):     com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:953)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:937)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:929)
              W/System.err(19641):     com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
              W/System.err(19641):     android.app.Activity.performCreate(Activity.java:5264)
              W/System.err(19641):     android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
              W/System.err(19641):     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
              W/System.err(19641):     android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
              W/System.err(19641):     android.app.ActivityThread.access$800(ActivityThread.java:151)
              W/System.err(19641):     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
              W/System.err(19641):     android.os.Handler.dispatchMessage(Handler.java:110)
              W/System.err(19641):     android.os.Looper.loop(Looper.java:193)
              W/System.err(19641):     android.app.ActivityThread.main(ActivityThread.java:5299)
              W/System.err(19641):     java.lang.reflect.Method.invokeNative(Native Method)
              W/System.err(19641):     java.lang.reflect.Method.invoke(Method.java:515)
              W/System.err(19641):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
              W/System.err(19641):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
              W/System.err(19641):     dalvik.system.NativeStart.main(Native Method)
              W/System.err(19641): File: "file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 584, column: 18
              W/System.err(19641): StackTrace: 
              W/System.err(19641):    Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 584, column: 19
              W/System.err(19641):    Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/com.crashtestdummy.test/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25
              W/System.err(19641):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
              W/System.err(19641):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
              W/System.err(19641):    at android.app.ActivityThread.access$800(ActivityThread.java:151)
              W/System.err(19641):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
              W/System.err(19641):    at android.os.Handler.dispatchMessage(Handler.java:110)
              W/System.err(19641):    at android.os.Looper.loop(Looper.java:193)
              W/System.err(19641):    at android.app.ActivityThread.main(ActivityThread.java:5299)
              W/System.err(19641):    at java.lang.reflect.Method.invokeNative(Native Method)
              W/System.err(19641):    at java.lang.reflect.Method.invoke(Method.java:515)
              W/System.err(19641):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
              W/System.err(19641):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
              W/System.err(19641):    at dalvik.system.NativeStart.main(Native Method)
              W/System.err(19641): Caused by: com.tns.NativeScriptException: 
              W/System.err(19641): Calling js method onCreate failed
              W/System.err(19641): Error: java.lang.ClassCastException: android.widget.AbsListView$SavedState cannot be cast to java.lang.Boolean
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
              W/System.err(19641):     com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
              W/System.err(19641):     android.os.Parcel.readParcelable(Parcel.java:2107)
              W/System.err(19641):     android.os.Parcel.readValue(Parcel.java:2016)
              W/System.err(19641):     android.os.Parcel.readSparseArrayInternal(Parcel.java:2374)
              W/System.err(19641):     android.os.Parcel.readSparseArray(Parcel.java:1738)
              W/System.err(19641):     android.os.Parcel.readValue(Parcel.java:2073)
              W/System.err(19641):     android.os.Parcel.readArrayMapInternal(Parcel.java:2317)
              W/System.err(19641):     android.os.Bundle.unparcel(Bundle.java:249)
              W/System.err(19641):     android.os.Bundle.getSparseParcelableArray(Bundle.java:1273)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:827)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
              W/System.err(19641):     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
              W/System.err(19641):     android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1848)
              W/System.err(19641):     android.app.Activity.onCreate(Activity.java:902)
              W/System.err(19641):     com.tns.Runtime.callJSMethodNative(Native Method)
              W/System.err(19641):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
              W/System.err(19641):     com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:953)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:937)
              W/System.err(19641):     com.tns.Runtime.callJSMethod(Runtime.java:929)
              W/System.err(19641):     com.tns.NativeScriptActivity.onCreate(Na
              

1 个答案:

答案 0 :(得分:0)