error in new release Attribute "checked" already defined with incompatible format

hi all,
after lasr update i have this error
xamarin Attribute "checked" already defined with incompatible format

thanks

16 Replies

PA Paul Anderson S Syncfusion Team August 2, 2018 06:18 AM UTC

Hi Alberto, 
 
Thank you for using Syncfusion products, 
 
We are not able to understand the reported issue with SfCheckBox. Can you please update some more details with the replication steps to reproduce so that we can check with our side and update you the solution? 
 
Regards, 
Paul Anderson 



LU Luca August 2, 2018 07:40 AM UTC

hi,
i heve only this message after upgrade to last versione.
i unistall the syncfusion.xamarin.buttons dll and all is ok.
i put here the code where i have the error

<resources><declare-styleable name="DrawableStates">
<attr name="state_indeterminate" format="boolean" />
</declare-styleable><declare-styleable name="SfCheckBox"><attr name="isthreestate" format="boolean" /><attr name="cornerradius" format="float" />
<attr name="checked" format="enum">
<enum name="unchecked" value="0" />
<enum name="indeterminate" value="1" />
<enum name="checked" value="2" />
</attr>
</declare-styleable></resources>


PA Paul Anderson S Syncfusion Team August 2, 2018 08:25 AM UTC

HI Alberto, 
  
Sorry, We still not able to reproduce the reported issue at our end and we have not made any code changes in our new version. Can you please provide a issue reproducing sample so that it will be helpful in getting the exact root cause and in providing the fix details. 
  
Regards, 
Paul Anderson 



LU Luca August 2, 2018 10:14 AM UTC

i put here a screen.
i just install the library



PA Paul Anderson S Syncfusion Team August 2, 2018 10:42 AM UTC

Hi Alberto, 
  
Thanks for the update. 
  
Are you installing all the three packages to the project. For Xamarin Forms Application you have to install only the "Syncfusion.Xamarin.Buttons" in all the projects [.Net Standard, Android, iOS]. 
  
Syncfusion.Xamarin.Buttons.Android - This nuget is for native Xamarin.Android Application and similarly Syncfusion.Xamarin.Buttons.iOS for Xamarin.iOS Appllication. 
  
Can you please let us know if the above informations helps resolving the reported issue. 
  
Regards, 
Paul Anderson 



JH Jean Hardy August 14, 2018 12:49 AM UTC

Same error here :/


JH Jean Hardy August 14, 2018 01:20 AM UTC

If I modify the attr name, I can compile successfuly and launch the Android app. Like so :
<attr name="enumChecked" format="enum">
      <enum name="unchecked" value="0" />
      <enum name="indeterminate" value="1" />
      <enum name="checked" value="2" />
    </attr>


PA Paul Anderson S Syncfusion Team August 14, 2018 09:24 AM UTC

Hi Jean, 
 
Greetings from Syncfusion. 
 
We are still not able to reproduce the reported issue with SfCheckBox at our end. Can you please share the replication steps/simple sample or additional details regarding the issue? 
 
The mentioned code snippet is in our source code. Have you modified the source code attr file to resolve the reported issue? 
 
Regards, 
Paul Anderson 



JH Jean Hardy October 5, 2018 04:06 PM UTC

Solved: error came from the duplicate presence of Syncfusion.Xamarin.Buttons and Syncfusion.Xamarin.Buttons.Android in Android solution.



PA Paul Anderson S Syncfusion Team October 8, 2018 04:24 AM UTC

Hi Jean, 
  
Thanks for the update. 
  
We are glad that the issue faced has been resolved. Please get in touch if you require any further assistance. 
  
Regards, 
Paul Anderson 



BM Brian Macomber January 28, 2019 11:13 PM UTC

I'm getting a similar error on my Android build after adding the "buttons" nuget.  Below are the packages referenced, if I read the documentation correctly I should included both the Syncfusion.Xamarin.Buttons nuget (in all projects) and also the Syncfusion.Xamarin.Buttons.Android to the Android project.

Any ideas?



 <PackageReference Include="Syncfusion.Xamarin.Buttons">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.Buttons.Android">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfAutoComplete">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfAutoComplete.Android">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfBadgeView">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfComboBox">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfComboBox.Android">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfDataGrid">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfDataGrid.Android">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfGridConverter">
      <Version>16.3.0.29</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfGridConverter.Android">
      <Version>16.3.0.29</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfPicker">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.SfPicker.Android">
      <Version>16.4.0.42</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Xamarin.XlsIO">
      <Version>16.4.0.42</Version>
    </PackageReference>


DR Dhanasekar R Syncfusion Team January 29, 2019 11:36 AM UTC

Hi Brian, 
 
For using SfCheckBox control on Xamarin.Forms platform we need to add the "Syncfusion.Xamarin.Buttons" NuGet alone for all the projects in a Sample. For more information about adding NuGet, please refer the below link. 
 
 
On your project you need to remove the Syncfusion.Xamarin.Buttons.Android NuGet to avoid this error at your end. 
 
Please let us know if you need any clarification on this. 
 
Regards, 
Dhanasekar 
 



BM Brian Macomber January 29, 2019 02:37 PM UTC

Thanks,

So for XF you only need to add the nuget without a platform in the name?  Does this apply just to the buttons nuget or all of them?


DR Dhanasekar R Syncfusion Team January 30, 2019 09:54 AM UTC

Hi Brian,


Yes. You need to add NuGet with control name alone. This is applicable for all Syncfusion controls.


Nuget Name:  Syncfusion.Xamarin.ControlName


Regards,

Dhanasekar



VW Victor Wilcox September 15, 2019 06:27 PM UTC

Thanks!  The get started could make it more clear NOT to install the .Android and .iOS nugets on xamarin.  I was experimenting with leaving out the non-specific version, but only after reading this did I realize I need to leave out the specific versions.  Fixed my problem right away.


MK Muneesh Kumar G Syncfusion Team September 16, 2019 06:37 AM UTC

Hi Brian, 
 
Thanks for the update. Please let us know if you need any further assistance. 
 
Thanks, 
Muneesh Kumar G. 


Loader.
Up arrow icon