Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Variable ndk.dir must not be added to local.properties

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.

like image 989
Peter Avatar asked Oct 19 '22 17:10

Peter


1 Answers

I've got answer here:

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

like image 99
Oleksandr Avatar answered Nov 15 '22 03:11

Oleksandr