Skip to content

Instantly share code, notes, and snippets.

@Udham1
Created January 16, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Udham1/86b26c4a8ef18882b99c to your computer and use it in GitHub Desktop.
Save Udham1/86b26c4a8ef18882b99c to your computer and use it in GitHub Desktop.
System.InvalidCastException: Cannot cast from source type to destination type.
at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
at Android.Runtime.JNIEnv.CopyArray[Object] (IntPtr src, Java.Lang.Object[] dest) [0x00078] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:946
at Android.Runtime.JNIEnv.GetArray[Object] (IntPtr array_ptr) [0x00053] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:1211
at SMSTestProject.SMSBroadcastReceiver.OnReceive (Android.Content.Context context, Android.Content.Intent intent) [0x00040] in /Users/xamarin76/Downloads/SMSTestProject/SMSTestProject/SMSBroadcastReceiver.cs:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment