You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error in Android Configuration in both Windows and Mac Machines:
x ndk-bundle: not installed
When I try to debug on Android getting following error in the terminal:
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.138\tools\Xamarin.Android.Tooling.targets(70,5): error XA5300: The Java SDK directory could not be found. Install the Java
SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk [C:\Users\spara\source\repos\Dome-backend\Player\Player.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.138\tools\Xamarin.Android.Tooling.targets(70,5): error XA5300: To use a custom JDK path for a command line build, set the
'JavaSdkDirectory' MSBuild property to the custom path. [C:\Users\spara\source\repos\Dome-backend\Player\Player.csproj::TargetFramework=net8.0-android]
I have the Java installed and set the path in the Visual studio code at:
Also note I installed Android studio and all the required components are installed and recognize by Visual Studio Code including the latest version of NDK.
Extension version: 1.3.29
VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Windows_NT x64 10.0.22631
Modes:
@HobDev We've been working on improving this part of the configuration experience, but that is only available in the latest Prerelease update. Can you switch to the latest prerelease to determine if this is addressed there already? it would be invaluable feedback for us. TIA
@HobDev Allen was referring to the .NET MAUI extensions. The improvements were also shipped to the release channel yesterday, so if you update to the latest version of the release channel (v1.4.36) you will get them.
Today I able to run the app on Android emulator inspite of the x ndk-bundle: not installed issue. Although an error window pops up with the following message:
Debugging can fail: Android SDK required components need to be installed.
But the debugging was successful.
The debugging is only possible if I run the Emulator in advance from Android Studio. The Visual Studio don't able to start the Emulator. Should I open new issue for Emulator not starting from VS Code problem.
Today I able to run the app on Android emulator inspite of the x ndk-bundle: not installed issue. Although an error window pops up with the following message:
Debugging can fail: Android SDK required components need to be installed.
But the debugging was successful.
The debugging is only possible if I run the Emulator in advance from Android Studio. The Visual Studio don't able to start the Emulator. Should I open new issue for Emulator not starting from VS Code problem.
I can debug on Mac but the original issue exists on Windows. It's not possible to debug on Windows
Type: Bug
The following error in Android Configuration in both Windows and Mac Machines:
x ndk-bundle: not installed
When I try to debug on Android getting following error in the terminal:
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.138\tools\Xamarin.Android.Tooling.targets(70,5): error XA5300: The Java SDK directory could not be found. Install the Java
SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk [C:\Users\spara\source\repos\Dome-backend\Player\Player.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.138\tools\Xamarin.Android.Tooling.targets(70,5): error XA5300: To use a custom JDK path for a command line build, set the
'JavaSdkDirectory' MSBuild property to the custom path. [C:\Users\spara\source\repos\Dome-backend\Player\Player.csproj::TargetFramework=net8.0-android]
I have the Java installed and set the path in the Visual studio code at:
c:\Program Files\Microsoft\microsoft-jdk-17.0.12-windows-x64\jdk-17.0.12+7
Also note I installed Android studio and all the required components are installed and recognize by Visual Studio Code including the latest version of NDK.
Extension version: 1.3.29
VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
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
| VS Bug 2285281
The text was updated successfully, but these errors were encountered: