Issues on implementing Nativescript-accordion plugin in NS with Angular application

plugins

#1

Hey all!

I am trying nativescript-accordion plugin in NS with angular app. I have followed the documentation.
But i have got this below mentioned error,

android.widget.AbsListView$LayoutParams cannot be cast to org.nativescr

Console logs-

Preparing project...
Project successfully prepared (Android)
Successfully transferred app.component.ts.
Successfully transferred app.component.js.
Refreshing application...
Successfully synced application org.nativescript.accordian on device 3004c567d59f1200.
ActivityManager: Permission Denial: getCurrentUser() from pid=12814, uid=14027 requires android.permission.INTERA
CT_ACROSS_USERS
ActivityManager: Permission Denial: getCurrentUser() from pid=12814, uid=14027 requires android.permission.INTERA
CT_ACROSS_USERS
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
System.err: java.lang.ClassCastException: android.widget.AbsListView$LayoutParams cannot be cast to org.nativescr
ipt.widgets.CommonLayoutParams
System.err:     at org.nativescript.widgets.GridLayout.updateMeasureSpecs(GridLayout.java:200)
System.err:     at org.nativescript.widgets.GridLayout.onMeasure(GridLayout.java:275)
System.err:     at android.view.View.measure(View.java:17478)
System.err:     at org.nativescript.widgets.CommonLayoutParams.measureChild(CommonLayoutParams.java:262)
System.err:     at org.nativescript.widgets.ContentLayout.onMeasure(ContentLayout.java:32)
System.err:     at android.view.View.measure(View.java:17478)
System.err:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
System.err:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
System.err:     at android.view.View.measure(View.java:17478)
System.err:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
System.err:     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
System.err:     at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
System.err:     at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
System.err:     at android.view.View.measure(View.java:17478)
System.err:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
System.err:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
System.err:     at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2548)
System.err:     at android.view.View.measure(View.java:17478)
System.err:     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2285)
System.err:     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1396)
System.err:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1595)
System.err:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
System.err:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6624)
System.err:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:812)
System.err:     at android.view.Choreographer.doCallbacks(Choreographer.java:612)
System.err:     at android.view.Choreographer.doFrame(Choreographer.java:582)
System.err:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:798)
System.err:     at android.os.Handler.handleCallback(Handler.java:733)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
System.err:     at android.os.Looper.loop(Looper.java:146)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:5602)
System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
System.err:     at java.lang.reflect.Method.invoke(Method.java:515)
System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
System.err:     at dalvik.system.NativeStart.main(Native Method)
ActivityManager: Process org.nativescript.accordian (pid 12814) (adj 0) has died.
  • Nativescript-accordion works perfectly If i clone the Nativescript-accordion repository and tried with my local.

  • Here is my NS components versions information,
    testimg

@triniwiz What i missed here! Why these errors occurred? Any help?

Cheers!


#2

Your error contains Permission Denial: getCurrentUser() from pid=12814, uid=14027 requires android.permission.INTERA CT_ACROSS_USERS you would want to fix that first and try again