I use a macbook and I was unable to get the codeworks installed for android, In my case I got a ‘golang’ error and I had no clue how to fix it.
In the end, I ended up installing Android SDK, NDK, ant and Java 8 on my own and got it to work. I merely pointed to my custom install in the Android SDK settings in UE as in the pic. I made sure android installation was working by setting up the android studio first before using UE4. See if this works for you.
Change your SDK API level to “latest” and change the NDK API level to “android-21” without quotes. Upload your full error output log if you run into another problem.
If your outcome differs than what is provided in this post, you may want to open your own AnswerHub thread and post as much information as possible. Please include your Android SDK settings as a screenshot and any logs as a .txt file.