I have been trying for last 2 days to compile a helloworld project for android. It had been giving different errors so far but I found my way through using the different questions asked here by users or at stackoverflow. But now, I have searched everywhere and couldn’t find a proper solution anywhere.

When I try to run the build_native.sh in cygwin, it starts compiling but in the libgame.so shared library, it gives an error with exit code 1. Other guys have been getting this type of errors but none of their solution work for me.
I have checked the android.mk and the references are the correct.

It starts with some permission denied errors.
I was getting those errors as well, you need to make sure you have write permissions to that folder mentioned in the output.
The errors that follow might be related.

It also looks like a lot of the errors are undefined reference to ’std::ios_base::Init::~Init()
I’m not sure why ios is mentioned, I dont remember seeing this in my version.

It starts with some permission denied errors.
I was getting those errors as well, you need to make sure you have write permissions to that folder mentioned in the output.
The errors that follow might be related.
>
It also looks like a lot of the errors are undefined reference to ’std::ios_base::Init::~Init()
I’m not sure why ios is mentioned, I dont remember seeing this in my version.

I am not sure, I did check the permissions by going in to the security tab, it has full access.
Still thanks alot Adam Reed for your help and time.