raghad abdulah

raghad abdulah

  • NA
  • 10
  • 2.3k

Unhandled Exception: Java.Lang.ClassNotFoundException ??

Mar 29 2018 6:36 AM
hello , i write this code for my android application
  1. using Android.App;  
  2. using Android.Widget;  
  3. using Android.OS;  
  4. using Android.Content;  
  5.   
  6. namespace myfitnessapp  
  7. {  
  8.     [Activity(Label = "myfitnessapp", MainLauncher = true)]  
  9.     public class MainActivity : Activity  
  10.     {  
  11.         private Button UpperbodyButton;  
  12.         private Button LowerbodyButton;  
  13.         private Button CardioButton;  
  14.         private Button YogaButton;  
  15.   
  16.         protected override void OnCreate(Bundle savedInstanceState)  
  17.         {  
  18.             base.OnCreate(savedInstanceState);  
  19.   
  20.             // Set our view from the "main" layout resource  
  21.             SetContentView(Resource.Layout.Main);  
  22.             FindViews();  
  23.             HandleEvents();  
  24.               
  25.         }  
  26.         private void FindViews()  
  27.         {  
  28.             UpperbodyButton = FindViewById<Button>(Resource.Id.UpperbodyButton);  
  29.             LowerbodyButton = FindViewById<Button>(Resource.Id.LowerbodyButton);  
  30.             CardioButton = FindViewById<Button>(Resource.Id.CardioButton);  
  31.             YogaButton = FindViewById<Button>(Resource.Id.YogaButton);  
  32.         }  
  33.         private void HandleEvents()  
  34.         {  
  35.             UpperbodyButton.Click += UpperbodyButton_Click;  
  36.             LowerbodyButton.Click += LowerbodyButton_Click;  
  37.         }  
  38.   
  39.         private void UpperbodyButton_Click(object sender, System.EventArgs e)  
  40.         {  
  41.             var intent = new Intent(thistypeof(Upperbody2));  
  42.             StartActivity(intent);  
  43.         }  
  44.           
  45.         private void LowerbodyButton_Click(object sender, System.EventArgs e)  
  46.         {  
  47.             var intent = new Intent(thistypeof(Lowerbody2));  
  48.             StartActivity(intent);  
  49.         }  
  50.     }  
  51. }  
but when i tried to run it , it show me this error : 
Unhandled Exception:
Java.Lang.ClassNotFoundException: md56c2df86cd51c12517412b6ac46cbff79.Lowerbody2
 
just for the second button , i don't know how to slve it . 

Answers (1)