-
Notifications
You must be signed in to change notification settings - Fork 14
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
wrong android sdk requirement #1631
Comments
@HobDev: could you please provide the contents of the "Output" panel (Ctrl+Shift+U, then select ".NET MAUI" from the drop-down)? For example, for reference, I followed the MAUI installation instructions:
with contents:
I do not see any messages stating that "Android SDK version 34 is not installed". |
Howver, with respect to my previous comment, if I update the <TargetFramework>net8.0-android</TargetFramework> that is, target .NET 8 instead of .NET 9, then .NET MAUI reports errors:
We thus need to re-run the
Note Now when Ctrl+Shift+P > .NET MAUI: Configure Android > Refresh Android environment, I get:
Notice that |
The shorter version is that the |
@jonpryor Thanks for detailed explanation. You are correct the issue is only with the project which I upgraded from .NET 8 to .NET 9. Other projects correctly recongnize the latest version of Android SDK. Do I have to move the code of the effected project to the project which is created with new template. Can't I fix this issue in the same project. I already replaced the net-8.0 references with net-9.0 in csproj and updated all the NuGets. |
@mauroa, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer. |
I don't understand the question or scenario. In particular:
Why can't you fix it in the same project? I think your scenario is:
Is that your scenario? If so, what build errors do you see? Or is that not your scenario? |
I have a project which was initially created under .NET 8: I then update it to target .NET 9: Plus update other NuGet/etc. references to use .NET 9 versions. The project fails to build. This is exactly my scenario. If I manually set the Android location from the command Select Android SDK location to the same location as it is already set it recognize the installed Android SDK version 35 and ask for correct requirement (version 35). But when I try to debug I get the following error. Get few warnings like After a restart the VSCode again expect the wrong android sdk requirement as described in the issue. But still if I debug I get the same error as above. Below is the terminal output:
|
I installed 7Zip on my windows 11 machine. Now I am getting new error:
Get this error with .net 8 and .net 9 both. |
The actual issue of |
Type: Bug
I recently installed Visual Studio code after installing .NET 9 on a clean PC. When I check Android environment it always show that the Android SDK version 34 is not installed.
But it should check for Android SDK version 35 which is already installed and also the path is set in VS Code.
Extension version: 1.5.34
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: