5

I have created a skeleton Android Studio project and am going through the following link to set it up for C++ compiling:

http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/

The first step is to define ndk.dir in file local.properties.

However, the self-generated local.properties file has the following comments at the top:

## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!

Is there a different file to define ndk.dir? Regards.

Peter
  • 11,260
  • 14
  • 78
  • 155
  • http://ph0b.com/android-studio-gradle-and-ndk-integration/ alt way of doing that may be preferred by those using their own android.mk – Robert Rowntree Feb 05 '15 at 05:05

2 Answers2

3

I've got answer here:

Just define ANDROID_NDK_HOME environment variable. It is also very useful for TeamCity job.

Oleksandr
  • 6,226
  • 1
  • 46
  • 54
0

You shouldn't modify that file just because it is generated from Android Studio preferences. Just use the related preferences directly in Android Studio, as stated here

thelawnmowerman
  • 11,956
  • 2
  • 23
  • 36