Dhia Hassen Dhia Hassen - 1 month ago 11
Android Question

How to tell android studio the location of a pre-existing NDK?

Im trying to use my pre-existing

NDK
with
Android Studio
, it offers an option of downloading a new NDK and auto setup , but i want to use the version i was using before i downloaded
Android Studio
, how to tell it the location of the
NDK
i already have ? Do i have to set the NDK_HOME environment variable ?

Android Studio
's documentation tells that when downloading the
NDK
from the options menu in
Android Studio
it will be under the
SDK
's home in a folder called "ndk-bundle" , do i have to put it there ? (soure https://developer.android.com/studio/projects/add-native-code.html)

Answer

On my Android Studio (2.2) you can go to File | Project Structure.

You will get the Project Structure dialog. Select SDK Location. You can set the location of your NDK in this dialog as well.

Comments