Error with lastest sdk ndk and java (ANDROID ERROR)


#1

Hi, i having problems with the config of android i install the latest versions of sdk ndk and java through the android studio and set the src to lime setup android and i change the file .hxcpp.xml that for some reason I don’t update the src of this config but i having this error and i dont find any help…

D:\proyectos haxe\AddingAnimation>lime test android
Creating D:/proyectos haxe/AddingAnimation/Export/android/obj/obj/android- 
v7/__pch/haxe/hxcpp.h.gch...
In file included from C:\Users\Xmorpher2\AppData\Local\Android\sdk\ndk- 
bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/typeinfo:34:0,
             from C:/HaxeToolkit/haxe/lib/hxcpp/git/include/hxcpp.h:19:
C:\Users\Xmorpher2\AppData\Local\Android\sdk\ndk-bundle/sources/cxx-stl/gnu- 
libstdc++/4.9/include/exception:37:28: fatal error: bits/c++config.h: No such file or 
directory
 #include <bits/c++config.h>
                        ^
compilation terminated.
 Error: Could not create PCH

#2

I believe HXCPP does not support any version of the Android NDK newer than r15c, yet, because the newer NDK removes GCC and has clang only. I have a pull request for adding clang support, but it needs a little more love before it’s ready


#3

ok, i going to trying to download the android ndk r15c and see how it goes,thanks :slight_smile: