0

i have very simple xamarin application , with 2 activities , when i want to start my second activity xamarin in visual studio 2017 show "Java.Lang.ClassNotFoundException: " ERROR

8
  • have u added these activities in the manifest ? Commented Dec 16, 2017 at 11:02
  • In xamarin ? No how should i do ? Commented Dec 16, 2017 at 19:52
  • 2
    Can you please post the full error in question? You can use the Continue button when the UnhandledException dialog appears to the point of breaking out of debugging mode and view your Output window to see the full stack trace. Commented Dec 16, 2017 at 20:09
  • full Error : Java.Lang.ClassNotFoundException: <Timeout exceeded getting exception details> Commented Dec 17, 2017 at 6:01
  • 1
    Please post your code that how did you open your second activity and your second Activity code. Commented Dec 18, 2017 at 8:37

2 Answers 2

0

Maybe...

(ref.: https://developer.xamarin.com/guides/android/getting_started/hello,android_multiscreen/hello,android_multiscreen_quickstart/)

This work:

translationHistoryButton.Click += (sender, e) =>
{
    var intent = new Intent(this, typeof(TranslationHistoryActivity));
    intent.PutStringArrayListExtra("phone_numbers", phoneNumbers);
    StartActivity(intent);
};

This get Java.Lang.ClassNotFoundException:

translationHistoryButton.Click += (sender, e) =>
{
    var intent = new Intent(this, typeof(TranslationHistoryActivity));
    //intent.PutStringArrayListExtra("phone_numbers", phoneNumbers);
    //StartActivity(intent);
};
Sign up to request clarification or add additional context in comments.

Comments

0

Install 'Android Support Repository' Tool->Android->Android SDK manager->Tools->Extras->Android Support Repository

After installed, Rebuild your project.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.