I suppose that the problem is to lower the memory consumption of NDK framwork. I tried to narrow the NDK memory settings (see screen in the attachment), but still without success.
ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x20006668, size=2048
xdc.runtime.Error.raise: terminating execution