-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS 17.3.4 Breaks Android build with - Manifest file at 'obj\Debug\net6.0-android\android-arm\staticwebassets.build.json' not found #10102
Comments
Same issue here :( |
Closing VS, deleting bin and obj folder works for the first build, then the error appears again |
I'm on the same boat. If you want to use VS 17.3.4 with MAUI now, try this.
{
"sdk": {
"version": "6.0.400"
}
} Maybe SDK issue? Edit: Windows update KB5017915 pushing SDK I just tried SDK |
Same issue. Uninstalled 17.3.4 and installed 17.3.2 again and now it's totally bricked. Tried to install the 6.0.400 SDK and put it in the global.json but doesn't work. Global.json was in the wrong directory for some reason. Works again now with 6.0.400 Also seems like it's rebuilding everytime you deploy to a local Android device. Takes ages to test things. |
Same issue! :/ |
Having this issue, too... |
same here :( |
same here rolling back to previous version this crazy |
Helped me! Just needed to add the global.json in the solution folder to use the SDK version 6.0.400. Thanks. |
Thank you this works for me too, I have updated the main ticket with this workaround to help others. 😊 |
It's already 6.0.401 :) if you follow the link ! |
Yeah, can't find 6.0.400, hope it gets fixed soon |
Ok guys, for the meantime, I was able to make it to work, just did a search for file staticwebassets.build.json and found it at folder net6.0-android, so just copied it at folders where building was breaking and now it is working, cheers. |
It works. Thank you. |
I found the 6.0.400 SDK at a different website third-party but it still did not work for me. This workaround did, however. Here's the link to the third-party site in case someone gets any use out of it: https://versionsof.net/core/6.0/6.0.8/ |
obj\Debug\net6.0-android\staticwebassets.build.json |
tried both the sdk and the file copy one. it still complains about missing dependencies now |
This comment was marked as off-topic.
This comment was marked as off-topic.
Same issue here |
The same issue |
Same issue here. |
1 similar comment
Same issue here. |
Same issue here |
Try it just now, it works :-) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Where can I find Global.json file? Also you said Global.json was in wrong directory. Can you tell me what should be location of Global.json? |
Here you go, it's a file you need to create in the project/solution.
|
@xiangnanscu There appears to be an issue with |
@danroth27 thanks. I run |
@xiangnanscu I believe |
@tb-mtg your workaround resolved this issue! Thank you. I modified little bit on you suggestion to support both Debug build and Release build.
This may still fail especially with rebuild. Building once again should be successful though. I know it's not the best but still better than being blocked by this issue I guess :) Hope this is cleaned up soon. UPDATE:
|
@alexdbkim Did you try running |
Thanks @alexdbkim - I think doing the |
I have the same issue and use the above workaround temporarily. |
@danroth27 @tb-mtg Yes I can confirm the suggested commend fixed the issue. I can build without the temporary workaround now. FIX: |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I have just updated to VS 17.3.5. It seems it's ok but yesterday I run dotnet workload install maui as @danroth suggested so I don't know if this new version fixes this issue. Have you tested it? |
VS dropped a new release 17.3.5 yesterday that fixed the problem for me!
Tony Nicholls
705 543 1312
…________________________________
From: Leif Westman ***@***.***>
Sent: Wednesday, September 28, 2022 8:29:57 AM
To: dotnet/maui ***@***.***>
Cc: Tony Nicholls ***@***.***>; Comment ***@***.***>
Subject: Re: [dotnet/maui] VS 17.3.4 Breaks Android build with - Manifest file at 'obj\Debug\net6.0-android\android-arm\staticwebassets.build.json' not found (Issue #10102)
Prolly trolling on purpose, but just in case you're not.... Do you understand the meaning of preview?
I pay big money for my licence of visual studio 2022, after update nothing work, shall it be so?
Not use previews, but need to change to a preview to not stop my work, but I can not do a release build either in standard or the preview!
—
Reply to this email directly, view it on GitHub<#10102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR2UHSK2FIQMZGYMLOGTXDDWAQ24LANCNFSM6AAAAAAQL3O624>.
You are receiving this because you commented.Message ID: ***@***.***>
|
It works fine for me, the other solutions posted didn't help.
Bad that the 17.3.4 sucked for MAUI.
Good that the VS team turned around a fix in 17.3.5 so quickly.
Just wish we had a simple revert mechanism in VS. For now, I'll be testing new VS versions in a spare dev environment before they are widely adopted by my team.
Thank you to VS/MAUI teams for your wonderful technology! I really love what you are doing and how fast you are iterating even if we do hit these occasional bumps.
Tony Nicholls
705 543 1312
…________________________________
From: OskrLrba ***@***.***>
Sent: Wednesday, September 28, 2022 8:34:26 AM
To: dotnet/maui ***@***.***>
Cc: Tony Nicholls ***@***.***>; Comment ***@***.***>
Subject: Re: [dotnet/maui] VS 17.3.4 Breaks Android build with - Manifest file at 'obj\Debug\net6.0-android\android-arm\staticwebassets.build.json' not found (Issue #10102)
I have just updated to VS 17.3.5. It seems it's ok but yesterday I run dotnet workload install maui as @danroth<https://github.com/danroth> suggested so I don't know if this new version fixes this issue. Have you tested it?
—
Reply to this email directly, view it on GitHub<#10102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR2UHSK5DQ7IKJVAVCYTAVDWAQ3NFANCNFSM6AAAAAAQL3O624>.
You are receiving this because you commented.Message ID: ***@***.***>
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This is confirmed to be fixed in 17.3.5, can this issue be closed? |
Works for me so I have no problem with you closing the ticket 😊
From: Kieran Devlin ***@***.***>
Sent: September 28, 2022 10:23 AM
To: dotnet/maui ***@***.***>
Cc: Tony Nicholls ***@***.***>; Comment ***@***.***>
Subject: Re: [dotnet/maui] VS 17.3.4 Breaks Android build with - Manifest file at 'obj\Debug\net6.0-android\android-arm\staticwebassets.build.json' not found (Issue #10102)
This is confirmed to be fixed in 17.3.5, can this issue be closed?
—
Reply to this email directly, view it on GitHub<#10102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR2UHSNUXU3NYU7UC4GH7UTWARIE5ANCNFSM6AAAAAAQL3O624>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Thank you everyone for your patience! Please update to 17.3.5 if you haven't already. This is now resolved! |
Description
Since updating to VS 17.3.4 I can't build any MAUI Android projects on my machine.
I have verified this on two devices running VS - before updating to VS 17.3.4 it was building ok - post update to 17.3.4 the build errors show for android.
I am unable to verify if this affects iOS but the build errors seem to point only at android.
This is happening on
dotnet --version
6.0.401Steps to Reproduce
Link to public reproduction project repository
https://github.com/jordanwilcox/maui-build-error-android-17.3.4
Version with bug
SDK 6.0.401
Last version that worked well
SDK 6.0.400
Affected platforms
Android
Affected platform versions
All android platforms
Did you find any workaround?
Workaround found by @cupsos by changing global.json in solution to sdk version 6.0.400
Relevant log output
The text was updated successfully, but these errors were encountered: