Skip to main content
sdkmanager installation needs no env variable
Source Link
user149408
  • 5.8k
  • 4
  • 35
  • 78

Make sure you have an environment variable ANDROID_NDK_HOME set and pointing to your NDK install directory. In my case this did the trick:

export ANDROID_NDK_HOME=/home/myself/bin/android-ndk-r10e

You may want to add this to your .bashrc or similar to have the variable inserted at login, or run the command above each time you launch a shell and want to build an NDK project.

As an alternative, if you installed ndk-bundle through sdkmanager, it will be found without an extra environment variable.

Make sure you have an environment variable ANDROID_NDK_HOME set and pointing to your NDK install directory. In my case this did the trick:

export ANDROID_NDK_HOME=/home/myself/bin/android-ndk-r10e

You may want to add this to your .bashrc or similar to have the variable inserted at login, or run the command above each time you launch a shell and want to build an NDK project.

Make sure you have an environment variable ANDROID_NDK_HOME set and pointing to your NDK install directory. In my case this did the trick:

export ANDROID_NDK_HOME=/home/myself/bin/android-ndk-r10e

You may want to add this to your .bashrc or similar to have the variable inserted at login, or run the command above each time you launch a shell and want to build an NDK project.

As an alternative, if you installed ndk-bundle through sdkmanager, it will be found without an extra environment variable.

Source Link
user149408
  • 5.8k
  • 4
  • 35
  • 78

Make sure you have an environment variable ANDROID_NDK_HOME set and pointing to your NDK install directory. In my case this did the trick:

export ANDROID_NDK_HOME=/home/myself/bin/android-ndk-r10e

You may want to add this to your .bashrc or similar to have the variable inserted at login, or run the command above each time you launch a shell and want to build an NDK project.