Xamarin.Android remove compiler warnings

Hi,

I'm getting a lot of warnings when compiling Xamarin.Android project, for example:

Severity Code Description Project File Line Suppression State
Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_StatusBar_EventContent_Time. Please check that your Nuget Package versions are compatible. F1Mobile.Droid

Severity Code Description Project File Line Suppression State
Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_AppCompat_Notification_Time_Media. Please check that your Nuget Package versions are compatible. F1Mobile.Droid

Does anyone know how to remove them?

thanks.

Answers

  • lemontreexflemontreexf Member

    Please try setting your Compile Android version and Target Android version to the same, 8.1 for example.
    Right click the Android project in Solution Explorer and go to Properties. The Application tab on the left has the Compile version and the Android Manifest tab has the Target version.

  • AlonromAlonrom Member ✭✭

    Thanks for your reply but that didn't help, still getting:

    Severity Code Description Project File Line Suppression State
    Warning Skipping F1Mobile.Droid.Resource.String.abc_action_bar_home_subtitle_description_format. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_AppCompat_Notification_Media. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_AppCompat_Notification_Line2. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_StatusBar_EventContent_Title. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_StatusBar_EventContent_Info. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_StatusBar_EventContent_Time. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.Widget_AppCompat_NotificationActionText. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_AppCompat_Notification_Title_Media. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Color.design_textinput_error_color_light. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Style.TextAppearance_AppCompat_Notification_Time. Please check that your Nuget Package versions are compatible. F1Mobile.Droid
    Warning Skipping F1Mobile.Droid.Resource.Animation.design_fab_in. Please check that your Nuget Package versions are compatible. F1Mobile.Droid

  • lemontreexflemontreexf Member

    The warning seems that the NuGet packages you're consuming is not being built with the same Xamarin.Android.Support package versions as your app is using. You can try "get latest" on all the Android.Support nuget packages. Or drop your target Android version to the same as F1Mobile is compiling with.

Sign In or Register to comment.