Im sorry it wasnt clear what I said.
I meant to change all the env. vars to point at the same version(maybe you installed a newer version and it got overwritten). Just check what path are you using in UE4 and change all env vars accordingly. You can see that your CLASSPATH and your JAVA_HOME holds different version paths. and I dont know what version you put into your UE4 SDK setup.
Im also not soo deep in it to know if you have to recompile anything, but usually if you are using a binary version then you shouldnt have to worry about recompiling stuff.
I mean… this is also just a wild guess, but worth trying.
by the way, I believe you didnt answer my question about building an apk :D, could you tell me if you can successfully build out an akp?
also for other eager helper eyes if you could screen your project settings/Android SDK config, that might allow others to spot the culprit.