Android NDK Default location
Asked Answered
S

11

38

I am used to previous versions of NDK builds which came in zip format. I downloaded the recent r10 version for windows which had a .exe version. The exe version is just an extractor, that I didn't know and double clicked it. It didn't ask me for the location of extraction.

Now I want to remove this version and use a zip instead. How do I find on which location it was installed/extracted?

I tried looking to the ANDROID_NDK system variable and I found my previous definition of r8 version.

Scharff answered 17/12, 2014 at 9:27 Comment(0)
I
21

The latest version extracts itself inside the current working directory. So if you launched it from the explorer, that's the same directory as your .exe.

You should find an android-ndk-rXXX folder there. Otherwise that means it wasn't extracted.

It's always better to use the latest NDK, there are many bug fixes and improvements with each releases... You can open the .exe as an archive with 7zip, and extract it somewhere else if you need, or launch the .exe from a terminal set where you want to have it extracted.

Infirmity answered 17/12, 2014 at 12:7 Comment(1)
Actually I have launched it from a Download Manager and it was extracted inside its program files folder. That's why I was not able to find it. Thanks!Scharff
S
45

Android Studio 2.2 installs it in C:\Users\[username]\AppData\Local\Android\Sdk\ndk-bundle (on Windows 10).

Scraperboard answered 5/11, 2016 at 4:35 Comment(1)
Obviously, "Dev" in C:\Users\Dev refers to your current account name.Deodand
F
23

I am using Visual Studio, but I also want to play with Android Studio. So, in order to get the Android SDK and NDK, I installed Android Studio.

The Answer

Android Studio installed the SDK naturally at

C:\Users\<UserName>\AppData\Local\Android\Sdk

The NDK folder is not yet ready, but is/will exist at

C:\Users\<UserName>\AppData\Local\Android\Sdk\ndk-bundle

In order to flush out the folder with the actual NDK, I had to tell Android Studio to install the NDK.

File -> Settings

Select Appearance and Behavior -> System Settings -> Android SDK

Click on the SDK Tools Tab

Checkbox the NDK (And, I think, the LLDB and CMake options).

Select Apply/Install.

Now that NDK folder should be good to go.

Fraise answered 13/1, 2018 at 0:6 Comment(0)
I
21

The latest version extracts itself inside the current working directory. So if you launched it from the explorer, that's the same directory as your .exe.

You should find an android-ndk-rXXX folder there. Otherwise that means it wasn't extracted.

It's always better to use the latest NDK, there are many bug fixes and improvements with each releases... You can open the .exe as an archive with 7zip, and extract it somewhere else if you need, or launch the .exe from a terminal set where you want to have it extracted.

Infirmity answered 17/12, 2014 at 12:7 Comment(1)
Actually I have launched it from a Download Manager and it was extracted inside its program files folder. That's why I was not able to find it. Thanks!Scharff
C
15

in MacOs Android Studio installs it in

"/Users/USERNAME/Library/Android/sdk/ndk-bundle"

change USERNAME with your username.

Crook answered 23/11, 2016 at 18:18 Comment(0)
C
10

For Windows Android Studio 2.3.x(+):

My android-sdk folder was in C:\Program Files\Android\Android Studio\plugins\android-ndk

Be careful: The ndk might not be complete, so make sure everything is up to date.

Chilcote answered 25/5, 2017 at 22:20 Comment(0)
P
6

Windows 10 and Internet Download Manager thew mine into C:\Users\[username]\AppData\Roaming\IDM

Piperidine answered 26/8, 2015 at 1:36 Comment(0)
F
2

In Windows 10, It landed in

C:\Users[username]\AppData\Local\VirtualStore\Windows\SysWOW64\android-ndk-r10e

Fendley answered 24/8, 2015 at 10:4 Comment(0)
C
2

If you install from Android studio and not by downloading manually, you will find it in:

C:{Whatever place you had your root android installed}sdk\ndk-bundle

the path depends on where you had your root sdk folder installed.

Carnot answered 16/1, 2017 at 12:18 Comment(0)
L
2

I'm working on Ubuntu and it was installed to the subdirectory /home/username/Android/Sdk/ndk in my Android SDK directory.

I had to install the NDK from the Android Studio File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK - SDK Tools location.

Laryngotomy answered 20/4, 2021 at 1:14 Comment(0)
M
0

If you have changed the install location of Android SDK, then in your custom Android SDK location search for ndk folder. You will find NDK installation with required version.

Maggard answered 9/2 at 21:46 Comment(0)
V
-2

I Downloaded the NDK From within Unity. It arrived in my Downloads folder. C:\Users[USERNAME]\Downloads\android-ndk-r10e-windows-x86_64.exe

(select the ndk-r10e folder in downloads).

Viewfinder answered 13/3, 2017 at 18:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.