Reputation: 145
I am using xamarin android for my application. When i add the following code to my axml file it shows the error like "java.exe exited with code 2"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/bordertop"
android:layout_marginTop="0dp"
android:id="@+id/linearLayout1"
android:layout_marginBottom="71dp"
android:layout_gravity="bottom">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="5">
<ImageView
android:src="@drawable/sportscar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView1"
android:layout_gravity="fill_horizontal"
android:layout_weight="0.5" />
<ImageView
android:src="@drawable/seatbelt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView4"
android:layout_weight="1" />
<ImageView
android:src="@drawable/money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView5"
android:layout_weight="1"
android:layout_gravity="fill_horizontal" />
<ImageView
android:src="@drawable/customer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView3"
android:layout_weight="1" />
<ImageView
android:src="@drawable/groupbutton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/imageView2"
android:layout_weight="1.5" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="5">
<TextView
android:text="Four"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtdtl1"
android:textColor="#13317E"
android:layout_weight="1.2"
android:layout_gravity="center_horizontal" />
<TextView
android:text="4"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtdtl2"
android:textColor="#13317E"
android:layout_weight="0.5" />
<TextView
android:text="PayTm"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtdtl3"
android:textColor="#13317E"
android:layout_weight="1.3" />
<TextView
android:text="3.5"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtdtl4"
android:textColor="#13317E"
android:layout_weight="1" />
<TextView
android:text="CUG,FB,GP-VP"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtdtl5"
android:textColor="#13317E"
android:drawableTop="@color/BLUE"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
Can anyone please help me to resolve this issue.
Thanks in advance
Upvotes: 0
Views: 80
Reputation: 145
Finally I got the solution after a longtime. I have updated my xamarin in visual studio to 4.6.0.279 and it works fine now.
Upvotes: 1