Error using SfDataGrid in Android

Am getting this error when trying to use SfDataGrid on an Android device. Any ideas?

Unhandled Exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. occurred

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Java.Lang.ClassNotFoundException: Didn't find class "md537dafdde80e33a1134ed4c8f527dbedb.ExtendedScrollViewRenderer" on path: DexPathList[[zip file "/data/app/com.Projection.ScenarioEIS-1/base.apk"],nativeLibraryDirectories=[/data/app/com.Projection.ScenarioEIS-1/lib/arm, /vendor/lib, /system/lib]]
  at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00114] in <e736913786c2475188869561ae512b72>:0 
  at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <e736913786c2475188869561ae512b72>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods..ctor (System.Type declaringType) [0x00064] in <e736913786c2475188869561ae512b72>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods.GetConstructorsForType (System.Type declaringType) [0x0002c] in <e736913786c2475188869561ae512b72>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods.StartCreateInstance (System.String constructorSignature, System.Type declaringType, Java.Interop.JniArgumentValue* parameters) [0x00032] in <e736913786c2475188869561ae512b72>:0 
  at Xamarin.Forms.Platform.Android.FormsViewGroup..ctor (Android.Content.Context p0) [0x00046] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:89 
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement]..ctor (Android.Content.Context context) [0x00012] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:30 
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement]..ctor () [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:67 
  at Xamarin.Forms.Platform.Android.ViewRenderer`2[TView,TNativeView]..ctor () [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\ViewRenderer.cs:30 
  at Syncfusion.SfDataGrid.XForms.Droid.ExtendedScrollViewRenderer..ctor () [0x00000] in <8368365bc9c047e39bc79a0bb3d871c1>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <657aa8fea4454dc898a9e5f379c58734>:0 
   --- End of inner exception stack trace ---

3 Replies

SK Suriya Kalidoss Syncfusion Team March 15, 2018 09:59 AM UTC

Hi Damein, 
 
Thank you for using Syncfusion Products 
 
We have checked your query. We have found that this TargetInvocationException issue is due to Visual Studio IDE problems. We recommend to update the visual studio to solve this issue.  
 
To know more about visual studio target invocation exception please refer the below link: 
 
If the visual studio upgrade does not help, then please check if there is any mismatch in the Xamarin.Forms NuGet version among the projects. We recommend you to install the exact version of Xamarin.Forms NuGet supported by Syncfusion in the PCL and the renderer projects of your sample and also ensure no other version of Xamarin NuGets were installed in any of your PCL and renderer projects. After installing NuGets Clean and rebuild the project before running it. To know about the software requirements of our Syncfusion controls please refer the below link: 
 
 
 
Regards, 
Suriya 



KZ Kurt Ziegler December 30, 2018 06:16 PM UTC

FWIW I ran into the same error trying to use syncfusion:SfListView on a Xamarin Forms 4.0.0.8055-pre1 project.  Reverting back to latest stable Forms fixed it.


JN Jayaleshwari N Syncfusion Team December 31, 2018 10:42 AM UTC

Hi Kurt,  
  
Thanks for using Syncfusion product.  
  
We would like to know that our Syncfusion Xamarin.Forms components are compatible only with the stable version of Xamarin.Forms components and it does not support any pre-release version of Xamarin.Forms. We have already documents regarding this in our UG and you can refer the same from the following location. 
  
  
Regards,  
Jayaleshwari N 


Loader.
Up arrow icon