Android ndk not found

I have this problem that I can't solve.

I already checked the path of external tools.
8454455--1121837--upload_2022-9-20_22-8-48.png

8454455--1121819--upload_2022-9-20_22-7-18.png8454455--1121816--upload_2022-9-20_22-7-4.png

disable then enable a couple of times the paths in the editor settings. you can place them manually put after a few time of this disable enable they should work

the checkbox in the image above. disable that checkbox and enable it a couple of times

Keep this in mind too:

Android build not building:

Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

https://discussions.unity.com/t/887277

If it's not that, then here's how to troubleshoot:

First, make a blank project with a single blank scene and prove that it builds successfully.

If it does NOT build, then go fix your Unity installation, or your other tools, such as Android SDK, NDK, JDK, etc.

Until you can build a blank project to the target platform, don't fiddle with anything else.

Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

Most often things that prevent building are third-party libraries such as Firebase.

Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

It may also be helpful to work through a tutorial or two for that subsystem.