Unity 2017.2 CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.

HI,
I have installed Unity 2017.2 and latest android platform tools, but I am getting error.

CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. 

then I tried changing JDK to 7 and 8 , same issue. then I installed platform tools 25.2.3 and 25.2.5 nothing helped though incase of 25.2.3 and JDK 8 I was able to create APK but it crashed on my android phone.

I am loosing all hope and downgrading to 5.6. But I wonder are there anyone who is facing same isseu

Try this, it worked for me:
http://answers.unity3d.com/answers/1416835/view.html
I have android studio 3 and SDK Up to date. just get the tools zip. and follow the instructions
and lastest JDK 8.151

I did this and it worked fine. In the preferences tab , under external tools then I used the path C:/Program Files (x86)/Android/android-sdk and it worked fine,I solved mine by pointing to this path in the preferences C:/Program Files (x86)/Android/android-sdk and it worked

Same here