TitleHow can I correct the NDK_ROOT setting error when building an Android sample app?2022-07-30 17:04:29
Writer

When an error occurs as like

NDK_ROOT not defined. Please define NDK_ROOT in your environment.
or
Couldn’t find the gcc toolchain.,

  1. Right-click the project you imported.
  2. Select properties > C/C++ Build > Environment and change the NDK_ROOT settings as a user experience.