Git Product home page Git Product logo

Comments (13)

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024 1

Try cleaning everything and rebuilding:

> git clean -dxf
> dotnet build HelloMaui
> dotnet build HelloMaui -t:Run -f net6.0-android --no-restore

@mattleibow do you see anything with the log above? It seems like it can't parse the .svg file?

Microsoft.Maui.Resizetizer.targets(332,9): Failed to Convert SVG to Android Drawable: EXCEPTION in parsing c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg:
error in parsing "m 105.50037,281.60863 " in [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg] [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]
Microsoft.Maui.Resizetizer.targets(332,9): One or more errors occurred. (Failed to Convert SVG to Android Drawable: EXCEPTION in parsing c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg:
error in parsing "m 105.50037,281.60863 " in [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg]) [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]

from maui-samples.

VladislavAntonyuk avatar VladislavAntonyuk commented on July 4, 2024

Add —no-restore

from maui-samples.

RsZoli avatar RsZoli commented on July 4, 2024

Add —no-restore

That makes the following error to occur:

C:\Users\RsZoli\Documents\net6-mobile-samples-develop\packages\microsoft.maui.resizetizer\6.0.100-preview.2.122\buildTransitive\Microsoft.Maui.Resizetizer.targets(332,9): error : Failed to Convert SVG to Android Drawable: EXCEPTION in parsing c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg: [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]
C:\Users\RsZoli\Documents\net6-mobile-samples-develop\packages\microsoft.maui.resizetizer\6.0.100-preview.2.122\buildTransitive\Microsoft.Maui.Resizetizer.targets(332,9): error : error in parsing "m 105.50037,281.60863 " in [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg] [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]
C:\Users\RsZoli\Documents\net6-mobile-samples-develop\packages\microsoft.maui.resizetizer\6.0.100-preview.2.122\buildTransitive\Microsoft.Maui.Resizetizer.targets(332,9): error : One or more errors occurred. (Failed to Convert SVG to Android Drawable: EXCEPTION in parsing c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg: [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]
C:\Users\RsZoli\Documents\net6-mobile-samples-develop\packages\microsoft.maui.resizetizer\6.0.100-preview.2.122\buildTransitive\Microsoft.Maui.Resizetizer.targets(332,9): error : error in parsing "m 105.50037,281.60863 " in [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\Resources\AppIcons\appiconfg.svg]) [c:\Users\RsZoli\Documents\net6-mobile-samples-develop\HelloMaui\HelloMaui.csproj]

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024

@RsZoli can you attach a .binlog? Add -bl to your command and upload the msbuild.binlog here, thanks!

from maui-samples.

RsZoli avatar RsZoli commented on July 4, 2024

@RsZoli can you attach a .binlog? Add -bl to your command and upload the msbuild.binlog here, thanks!

Of course!

dotnet build HelloMaui -t:Run -f net6.0-android --no-restore -bl:
https://drive.google.com/file/d/1JjlCK6WMaQDnIgIanKeF9BuSVEaSsEFj/view?usp=sharing

dotnet build HelloMaui -t:Run -f net6.0-android -bl:
https://drive.google.com/file/d/1md4eIMaCJXdtM48JuSa3H1llpAyTVO6F/view?usp=sharing

from maui-samples.

RsZoli avatar RsZoli commented on July 4, 2024

Try cleaning everything and rebuilding:

It's the same.

from maui-samples.

VladislavAntonyuk avatar VladislavAntonyuk commented on July 4, 2024

Replace the svg image with your own image and try again

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024

We think this is fixed in: dotnet/maui@45f9d47

We will get a new build of Maui here, which will hopefully fix it.

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024

@RsZoli can you try the latest on the main branch now and let us know?

from maui-samples.

RsZoli avatar RsZoli commented on July 4, 2024

@RsZoli can you try the latest on the main branch now and let us know?

I have tried it!
The following error occurs after the command: dotnet build HelloMaui -t:Run -f net6.0-android --no-restore

"C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(871,5): error MSB3073: The command "c:\Users\RsZoli\Documents\net6-mobile-samples-main\HelloMaui\bin\Debug\net6.0-android\HelloMaui.exe " exited with code 3. [c:\Users\RsZoli\Documents\net6-mobile-samples-main\HelloMaui\HelloMaui.csproj]"

And this one after: dotnet build HelloMaui

"C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier android was not recognized. [c:\Users\RsZoli\Documents\net6-mobile-samples-main\HelloMaui\HelloMaui.csproj]]"

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024

This looks like you don't have the latest Android workload, can you check that you have:

https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/net6/4534967/main/f4d8fe238b15eadfc7842749bf13e5fca3e2f2d2/Microsoft.NET.Workload.Android.11.0.200.148.msi

from maui-samples.

RsZoli avatar RsZoli commented on July 4, 2024

This looks like you don't have the latest Android workload, can you check that you have:

https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/net6/4534967/main/f4d8fe238b15eadfc7842749bf13e5fca3e2f2d2/Microsoft.NET.Workload.Android.11.0.200.148.msi

I had that version, but i used the installer you linked and did a repair, it is working now, thank you!

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 4, 2024

Ok, great, thanks!

from maui-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.