Closed apavlenko closed 9 years ago
I've been hit by this issue as well.
Here's the result of the command line:
$ export ANDROID_NDK=$HOME/Android/android-ndk-r10c
$ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN .. 2>&1 | more
CMake Error at build-android/android.toolchain.cmake:829 (list):
list index: 17 out of range (-17, 16)
Call Stack (most recent call first):
build2/CMakeFiles/2.8.11.2/CMakeSystem.cmake:1 (include)
CMakeLists.txt:2 (project)
Support for NDK r10+ is pushed to master. Building for "android-L" platform is possible if ANDROID_NATIVE_API_LEVEL it is explicitly set to "android-L"
Probably the toolchain script confuses finding 'android-L' platform.