- Home
- Forum
- Xamarin.Forms
- Android build failing with "Resource.xxx" does not contain a definition... errors
Android build failing with "Resource.xxx" does not contain a definition... errors
Thank you for using Syncfusion Products.
This error usually occurs when there is a mismatch of Xamarin NuGet packages between your sample and SfDataGrid assemblies. Our 14.1.0.46 version of release supports Xamarin NuGet of version 2.1.
Xamarin recommends the NuGet packages to be inline in order to avoid potential issues. So please uninstall all the other version of NuGets and use 2.1 version in the PCL and the renderer projects of your sample. Also ensure no other version of Xamarin NuGets were installed in any of your PCL and renderer projects. Clean and rebuild the project before running it. You can see the software requirements of Syncfusion controls from our read me information.
ReadMe link: https://s3.amazonaws.com/files2.syncfusion.com/Installs/v14.1.0.46/ReadMe/Xamarin_Forms.html
Moreover, our upcoming 2016 Volume 2 release supports 2.2 version of NuGet which is planned to be released by the end of next week. We appreciate your patience until then if you prefer to run SfDataGrid with the latest version of Xamarin.
Regards,
Harikrishnan
Spent a fair amount of time banging heads with this
today. Short version is if I remove
SyncFusion.DataGrid.XForms.Android.dll from the references list in my Android
project, the grid view page loads with the correct text and images formatted
correctly, just not as an actual list/grid (i.e. it doesn’t scroll, has no
cells and such) – so the DB fetch and such are all working correctly, it’s just
the grid rendering is broken somehow such that when it’s called the view fails
to show at all. I tried downloading 14.1.0.46 manually and setting the DLL dependencies to the install
folder as well as using NuGet to configure all the projects (which works fine
for iOS, PCL and UWP) – same results.
So at this point I’m unsure what dependencies to check –
there’s no errors and nothing spits out in the debug window giving me a hint as
to the source of the problem.
At this point I’ll continue testing the grid in iOS only –
charts work fine on all platforms so I can make some progress there at any
rate. Hopefully after the next update
some of this will be a bit smoother and I can update to Xamarin forms 2.2 and
move forward.
We are analyzing on your problem. We were able to get the grid working properly in Android without any problems. We would probably get back to you with a working example along with a video reference for your better understanding before the EOD. Meanwhile, you can download a simple getting started demo for Xamarin.Forms from the below link. You can also refer our getting started section of UG for more details.
Sample link: https://s3.amazonaws.com/files2.syncfusion.com/Xamarin.Forms/Samples/DataGrid_GettingStartedForms.zip
UG link: http://help.syncfusion.com/xamarin/sfdatagrid/getting-started
In case, if you are loading the grid inside a StackLayout please refer the below KB link to get it working.
KB link: https://www.syncfusion.com/kb/6169/how-to-load-sfdatagrid-in-a-stacklayout
Regards,
Harikrishnan
We have checked your query with use of 14.1.0.46 version release supports Xamarin NuGet of version 2.1, but we were unable to reproduce the issue from our side. So as we had mentioned earlier, we have attached a sample and output Screenshot deployed on Android for your reference and you can download the same from the below link.
Sample link: http://www.syncfusion.com/downloads/support/forum/124546/ze/DataGridSample1486650527
Screenshot link: http://www.syncfusion.com/downloads/support/forum/124546/ze/Android_image-1781687427
Regards,
Sathya
Attachment: App9_c55821e8.rar
Sorry for the inconvenience caused.
We have analyzed your query and we were able to reproduce the issue. We have logged an issue report for this. We will fix this issue internally and the fix for the reported issue will be available in our 2016 Volume 2 Main Release which is scheduled for release next week. We appreciate your patience until then.
Regards,
Sathya
Sorry for the inconvenience caused.
We have analyzed your query and we were able to reproduce the issue. We have logged an issue report for this. We will fix this issue internally and the fix for the reported issue will be available in our 2016 Volume 2 Main Release which is scheduled for release next week. We appreciate your patience until then.
Regards,
Sathya
Xamarin recommends the NuGet packages to be inline in order to avoid potential issues. So please uninstall all the other versions of NuGets and use 2.3.0.49 version in the PCL and the renderer projects of your sample. Also, ensure no other version of Xamarin NuGets were installed in any of your PCL and renderer projects. Clean and rebuild the project before running it.
- 12 Replies
- 6 Participants
-
JL Jeff Lindborg
- Jun 13, 2016 03:31 PM UTC
- Oct 21, 2016 01:07 PM UTC