Lime setup Android error

Edit: I have dodged this problem by installing the NDK and Apache Ant (which also had trouble) manually, before pointing lime at their new directories. Everything seems to be working now.


Hey there everyone, I’m having a bit of a problem setting up to build on the Android Target.
It’s having trouble on the NDK setup specifically.
I’m using a Mac.

Any idea how to solve this? I’ve been playing with the Haxe 3.2 RC2 for a while, but I just reinstalled 3.1.3 and am having the same problems. Mentioning it just in case it’s relevant.

This is the output of the command line where it breaks.

x android-ndk-r8b/build/tools/toolchain-symbols/x86/libgcc.a.functions.txt
x android-ndk-r8b/RELEASE.TXT
x android-ndk-r8b/README.TXT
x android-ndk-r8b/GNUmakefile
cp: android-ndk-r8b/*: No such file or directory
Called from ? line 1
Called from CommandLineTools.hx line 1359
Called from CommandLineTools.hx line 25
Called from a C function
Called from CommandLineTools.hx line 94
Called from CommandLineTools.hx line 1374
Called from utils/PlatformSetup.hx line 406
Called from utils/PlatformSetup.hx line 416
Called from utils/PlatformSetup.hx line 828
Called from utils/PlatformSetup.hx line 181
Called from a C function
Called from lime/tools/helpers/ProcessHelper.hx line 172
Called from lime/tools/helpers/ProcessHelper.hx line 242
Uncaught exception - Error running: cp -R android-ndk-r8b/* /opt/android-ndk []

I’m not sure but I think I might help others solve this problem.

Can you list me the result of “ls /opt/android-ndk”?
Can you add a “-debug, --debug” to the command so we can have a verbose version?

In the “cp: android-ndk-r8b/*: No such file or directory”. I have it working with linux and other target and I always use “/opt/android-ndk/” instead of “/opt/android-ndk-21e/” or something.

Can you try renaming your “android-ndk-r8b” to “android-ndk” and test if it works?

If you want you can have several version of NDK and use “android-ndk” as a pointer to the version you’re currently using.

Thanks.