Skip to content

Improve Android NDK path #58883

@Skoti

Description

@Skoti

Description of feature/enhancement

It seems like ANDROID_NDK_HOME is no longer respected by Android Studio and sdkmanager as now there is only one path and it is ANDROID_SDK_ROOT which contains everything. NDK should be in the ndk-bundle subfolder.

There are only 2 ways to make it work:

  1. Create a symlink in the current android-sdk installation folder i.e./usr/local/share/android-sdk/ndk-bundle pointing to /usr/local/share/android-ndk. This will make the current NDK installation to be used as a default for all projects.
  2. Add ndk.dir=/usr/local/share/android-ndk in the local.properties file of an AndroidStudio project. This needs to be done for every project which uses android-ndk.

Would it be possible to either change the android-ndk installation path to /usr/local/share/android-sdk/ndk-bundle or change the caveat information to set ndk.dir instead of using ANDROID_NDK_HOME environment variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions