Well, I tried using the VS2017 Community tools instead. Had the same issues. After toying around with the ANDROID_STL values I have found that "gnustl_shared" works for me, in combination with nmake.
So I get to go a few steps further into the process before I hit the next wall. When running
The results are
D:\Coding\_lib\_src\SFML\examples\android>ant -noclasspath debug
Buildfile: D:\Coding\_lib\_src\SFML\examples\android\build.xml
BUILD FAILED
D:\Coding\_lib\_src\SFML\examples\android\build.xml:90: The following error occurred while executing this line:
D:\SDK\android-sdk\tools\ant\build.xml:111: taskdef A class needed by class com.android.ant.GetLibraryPathTask cannot be found: com/android/sdklib/internal/project/IPropertySource
using the classloader AntClassLoader[D:\SDK\android-sdk\tools\lib\ant-tasks.jar;D:\SDK\android-sdk\tools\lib\manifest-merger.jar;D:\SDK\android-sdk\tools\lib\common.jar;D:\SDK\android-sdk\tools\lib\annotations.jar;D:\SDK\android-sdk\tools\lib\guava-17.0.jar;D:\SDK\android-sdk\tools\lib\kxml2-2.3.0.jar;D:\SDK\android-sdk\tools\lib\gson-2.2.4.jar;D:\SDK\android-sdk\tools\lib\layoutlib-api.jar;D:\SDK\android-sdk\tools\lib\annotations-12.0.jar;D:\SDK\android-sdk\tools\lib\dvlib.jar;D:\SDK\android-sdk\tools\lib\commons-compress-1.8.1.jar;D:\SDK\android-sdk\tools\lib\httpclient-4.1.1.jar;D:\SDK\android-sdk\tools\lib\httpmime-4.1.jar;D:\SDK\android-sdk\tools\lib\builder-model.jar;D:\SDK\android-sdk\tools\lib\httpcore-4.1.jar;D:\SDK\android-sdk\tools\lib\commons-logging-1.1.1.jar;D:\SDK\android-sdk\tools\lib\commons-codec-1.4.jar;D:\SDK\android-sdk\tools\lib\ddmlib.jar]
Total time: 0 seconds
As a complete non expert on this I decided to check up on the files, which seem to be there in D:\SDK\android-sdk\tools\lib\ . Also, my ANDROID_NATIVE_API_LEVEL refuses to change from 9 when using the "NMake Makefiles" generator. Weird. Anyone any clues on this?
Edit0 Switching to the newest commandline toolset did not make a difference (
https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip).
Edit1 Using NDK r12b in combination with android api 21 makes no difference to this error either. Seems to me that the SDK / Ant combination is incompatible.