System.TypeLoadException when inflating a layout

hi, i get the following exception System.TypeLoadException on this line

LayoutInflater.Inflate(Resource.Layout.dashboard, tabsitem);

i noticed this started when i added a custom view to the dashboard layout. here's the layout source

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@color/concrete"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:weightSum="100" android:background="@color/concrete" android:layout_height="match_parent"> <!--this is for the greeting--> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="10" android:background="@color/textcolor" android:id="@+id/greet" android:minWidth="25px" android:minHeight="25px" android:gravity="center_horizontal"> <TextView android:text="Hello &quot;FirstName&quot;" android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/welcome" android:textColor="@color/fontcol" android:gravity="center_vertical" android:layout_marginTop="5dp" android:textSize="20dp" /> </LinearLayout> <!--these is for the widjet--> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="65" android:layout_below="@id/greet" android:background="@color/grey" android:id="@+id/widget" android:minWidth="25px" android:minHeight="25px"> <!--this is the custom layout i added--> <appiness.SeekArc xmlns:seekarc="http://schemas.android.com/apk/res-auto" android:id="@+id/seekArc" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:padding="30dp" seekarc:rotation="180" seekarc:startAngle="30" seekarc:sweepAngle="300" seekarc:touchInside="true" /> </LinearLayout> <android.support.v7.widget.RecyclerView android:id="@+id/recyclerViewDash" android:scrollbars="horizontal" android:paddingTop="10dp" android:paddingBottom="10dp" android:layout_width="fill_parent" android:layout_below="@id/widget" android:layout_weight="25" android:layout_height="50dp" /> </LinearLayout> </RelativeLayout>

i have installed the latest json.net from xamarin store as shown in my project by the image below

pls what am i doing wrong?

Answers

  • IsraelAshaIsraelAsha USMember ✭✭

    i had to remove json and newtonjson.net because it didn't completely install. although i don't know if this was the solution bt it worked for me

Sign In or Register to comment.