András Tóth‘s professional blog
banditoth.net

Hey there 👋, I’m banditoth a .NET MAUI developer from Hungary.
I write about software development with .NET technologies.

You can find me on:
LinkedIn | Github | StackOverflow | X / Twitter | Threads

Tag: xamarin error

  • Xamarin Forms: BoxViews Color get’s lost when updating CornerRadius

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    In Version 4.8.0.1451 of Xamarin Forms NuGet package, when you update the BoxView’s Corner Radius, the Color property will be cleared.

    Issue opened here:
    https://github.com/xamarin/Xamarin.Forms/issues/12061

  • Xamarin: Android bindings library could not build

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    It seems, the new Visual Studio 2019 release with version 16.7 could not build the AndroidBindings projects. (For further information about what is an android binding proj, see: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/)

    The compiler gives the following error message:

    ...\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(327,5): warning MSB6002: The command-line for the "BindingsGenerator" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "BindingsGenerator" into multiple calls with fewer parameters per call.
    

    Workarounds like: Change the path of the soulution to shorter one does not seems to work.
    The only solution for the problem was to downgrade VisualStudio to 16.5.4 (to the last working one for me)

  • Xamarin Android: “Program type already present”

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    AndroidX migráció után a következő hibaüzenettel nem fordul le az alkalmazás:

    D8 : error : Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
    

    Próbáltam mindent, kitöröltem a lokális NuGet Cache-t, az összes bin és obj mappát, Cleanelni a Solutiont, Restoreolni a NuGet-eket. Nem járt eredménnyel semmi sem. Aztán nyitottam egy hibát az AndroidX repo-n (https://github.com/xamarin/AndroidX/issues/100) , ahol a megszokotthoz képest lassan reagáltak, akkor sem tudtak érdemben segíteni, így magamnak kellett megoldást találni a problémára.

    Elsőre feltelepítettem egy virtuális gépre friss Windows 10-et, rá pedig egy 2019-es Visual Studio Community-t. Lecloneoztam a repositoryt, megfordítottam, és sikeresen lefordult. Itt már gondoltam, hogy valami specifikus hiba lesz. Pár hétre jegelve lett a projekt, majd végül a megoldása az lett, hogy a host gépen teljesen eltávolítottam fizikailag az Azure DevOps GIT alapú repositoryt, majd újra leszedtem a remote-ról, és működött.

  • Xamarin Forms: “AllowUnsecureUrls” by “XamarinDownloadArchives”

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    Fordításnál (jellemzően Windowsos Visual Studioban git alapú branch váltásnál) a következő hibát kapjuk:

    MSB4064: The "AllowUnsecureUrls" parameter is not supported by the "XamarinDownloadArchives" task. Verify the parameter exists on the task, and it is a settable public instance property.
    

    Számomra minden esetben az IDE újraindítása odja meg a problémát.

  • AppStore publish error: ITMS-90717 (Alpha csatornás PNG ikon)

    AppStore publish error: ITMS-90717 (Alpha csatornás PNG ikon)

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    Transporter app-al való alkalmazásfeltöltésnél az AppStore-ba hibát dob:

    ERROR ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'SimpleTaxiOrderXamarin.iOS.app' can't be transparent nor contain an alpha channel."
    

    Ebben az esetben nem az info.plist-ben lévő iTunes Artworkot kell módosítani, hanem az alkalmazás ikonjának kiválasztott AssetCatalogban lévő AppStore ikonokat.

    Hasznos tool az alkalmazás ikonok elkészítéséhez: https://appicon.co/