Skip to content
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

x ndk-bundle: not installed #1534

Open
HobDev opened this issue Oct 14, 2024 · 6 comments
Open

x ndk-bundle: not installed #1534

HobDev opened this issue Oct 14, 2024 · 6 comments
Assignees
Labels
area-maui bug Something isn't working triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Milestone

Comments

@HobDev
Copy link

HobDev commented Oct 14, 2024

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
Item Value
CPUs AMD Ryzen 5 3600XT 6-Core Processor (12 x 3793)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.93GB (5.69GB free)
Process Argv --crash-reporter-id cf5b8c68-8be2-475e-b301-197515634cb4
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
g316j359:31013175
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
autoexpandse:31146404
iacca2:31156134
notype1cf:31157160
5fd0e150:31155592

| VS Bug 2285281

@emaf emaf added bug Something isn't working area-maui labels Oct 14, 2024
@AllenD-MSFT
Copy link
Contributor

@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

@AllenD-MSFT AllenD-MSFT added this to the Nov2024 milestone Oct 14, 2024
@HobDev
Copy link
Author

HobDev commented Oct 15, 2024

Do I need to switch to latest prerelease of the .NET Maui Extension or the latest prerelease of Visual Studio Code.

@emaf
Copy link
Member

emaf commented Oct 16, 2024

@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.

@HobDev
Copy link
Author

HobDev commented Oct 17, 2024

The issue still exists in the latest release version v1.4.36 .

@emaf emaf added vs-sync Add this label to synchronize the issue to AzDo triaged The issue has been triaged labels Oct 17, 2024
@AllenD-MSFT AllenD-MSFT added the vs-syncd Linked to AzDO label Oct 17, 2024
@HobDev
Copy link
Author

HobDev commented Oct 18, 2024

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.

@HobDev
Copy link
Author

HobDev commented Oct 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Projects
None yet
Development

No branches or pull requests

4 participants